mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 23:33:06 +00:00
InventoryAction: remove useless creationTime field
This commit is contained in:
parent
f41a731493
commit
56328f66a7
@ -31,9 +31,6 @@ use pocketmine\Player;
|
|||||||
* Represents an action involving a change that applies in some way to an inventory or other item-source.
|
* Represents an action involving a change that applies in some way to an inventory or other item-source.
|
||||||
*/
|
*/
|
||||||
abstract class InventoryAction{
|
abstract class InventoryAction{
|
||||||
|
|
||||||
/** @var float */
|
|
||||||
private $creationTime;
|
|
||||||
/** @var Item */
|
/** @var Item */
|
||||||
protected $sourceItem;
|
protected $sourceItem;
|
||||||
/** @var Item */
|
/** @var Item */
|
||||||
@ -42,12 +39,6 @@ abstract class InventoryAction{
|
|||||||
public function __construct(Item $sourceItem, Item $targetItem){
|
public function __construct(Item $sourceItem, Item $targetItem){
|
||||||
$this->sourceItem = $sourceItem;
|
$this->sourceItem = $sourceItem;
|
||||||
$this->targetItem = $targetItem;
|
$this->targetItem = $targetItem;
|
||||||
|
|
||||||
$this->creationTime = microtime(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getCreationTime() : float{
|
|
||||||
return $this->creationTime;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user