mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
InventoryTransaction: Removed creationTime
this is no longer necessary because transactions now always arrive in a single packet.
This commit is contained in:
parent
63fc04b3dd
commit
8312ad709e
@ -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[]
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user