InventoryAction: remove useless creationTime field

This commit is contained in:
Dylan K. Taylor 2018-03-29 12:20:13 +01:00
parent f41a731493
commit 56328f66a7

View File

@ -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.
*/
abstract class InventoryAction{
/** @var float */
private $creationTime;
/** @var Item */
protected $sourceItem;
/** @var Item */
@ -42,12 +39,6 @@ abstract class InventoryAction{
public function __construct(Item $sourceItem, Item $targetItem){
$this->sourceItem = $sourceItem;
$this->targetItem = $targetItem;
$this->creationTime = microtime(true);
}
public function getCreationTime() : float{
return $this->creationTime;
}
/**