InventoryTransaction: Removed creationTime

this is no longer necessary because transactions now always arrive in a single packet.
This commit is contained in:
Dylan K. Taylor 2018-05-16 12:14:29 +01:00
parent 63fc04b3dd
commit 8312ad709e

View File

@ -35,8 +35,6 @@ use pocketmine\Server;
* This InventoryTransaction only allows doing Transaction between one / two inventories * This InventoryTransaction only allows doing Transaction between one / two inventories
*/ */
class InventoryTransaction{ class InventoryTransaction{
/** @var float */
private $creationTime;
protected $hasExecuted = false; protected $hasExecuted = false;
/** @var Player */ /** @var Player */
protected $source; protected $source;
@ -52,7 +50,6 @@ class InventoryTransaction{
* @param InventoryAction[] $actions * @param InventoryAction[] $actions
*/ */
public function __construct(Player $source, array $actions = []){ public function __construct(Player $source, array $actions = []){
$this->creationTime = microtime(true);
$this->source = $source; $this->source = $source;
foreach($actions as $action){ foreach($actions as $action){
$this->addAction($action); $this->addAction($action);
@ -66,10 +63,6 @@ class InventoryTransaction{
return $this->source; return $this->source;
} }
public function getCreationTime() : float{
return $this->creationTime;
}
/** /**
* @return Inventory[] * @return Inventory[]
*/ */