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
*/
class InventoryTransaction{
/** @var float */
private $creationTime;
protected $hasExecuted = false;
/** @var Player */
protected $source;
@ -52,7 +50,6 @@ class InventoryTransaction{
* @param InventoryAction[] $actions
*/
public function __construct(Player $source, array $actions = []){
$this->creationTime = microtime(true);
$this->source = $source;
foreach($actions as $action){
$this->addAction($action);
@ -66,10 +63,6 @@ class InventoryTransaction{
return $this->source;
}
public function getCreationTime() : float{
return $this->creationTime;
}
/**
* @return Inventory[]
*/