Ditch crafting transaction if we get normal inventory action with incomplete crafting transaction

This commit is contained in:
Dylan K. Taylor 2017-09-28 20:07:07 +01:00
parent c448f4a3b5
commit c273a46537

View File

@ -2250,6 +2250,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}
return true;
}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->craftingTransaction = null;
}
switch($packet->transactionType){