mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Player: remove useless var
This commit is contained in:
parent
5b620d964e
commit
f0a0c9a85f
@ -2437,16 +2437,15 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = true;
|
|
||||||
try{
|
try{
|
||||||
$this->craftingTransaction->execute();
|
$this->craftingTransaction->execute();
|
||||||
|
return true;
|
||||||
}catch(TransactionValidationException $e){
|
}catch(TransactionValidationException $e){
|
||||||
$this->server->getLogger()->debug("Failed to execute crafting transaction for " . $this->getName() . ": " . $e->getMessage());
|
$this->server->getLogger()->debug("Failed to execute crafting transaction for " . $this->getName() . ": " . $e->getMessage());
|
||||||
$ret = false;
|
return false;
|
||||||
|
}finally{
|
||||||
|
$this->craftingTransaction = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->craftingTransaction = null;
|
|
||||||
return $ret;
|
|
||||||
}elseif($this->craftingTransaction !== null){
|
}elseif($this->craftingTransaction !== null){
|
||||||
$this->server->getLogger()->debug("Got unexpected normal inventory action with incomplete crafting transaction from " . $this->getName() . ", refusing to execute crafting");
|
$this->server->getLogger()->debug("Got unexpected normal inventory action with incomplete crafting transaction from " . $this->getName() . ", refusing to execute crafting");
|
||||||
$this->craftingTransaction = null;
|
$this->craftingTransaction = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user