mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
InGamePacketHandler: remove dead code
This commit is contained in:
parent
67b7b60d18
commit
eece6c4433
@ -136,9 +136,6 @@ use const JSON_THROW_ON_ERROR;
|
|||||||
class InGamePacketHandler extends PacketHandler{
|
class InGamePacketHandler extends PacketHandler{
|
||||||
private const MAX_FORM_RESPONSE_DEPTH = 2; //modal/simple will be 1, custom forms 2 - they will never contain anything other than string|int|float|bool|null
|
private const MAX_FORM_RESPONSE_DEPTH = 2; //modal/simple will be 1, custom forms 2 - they will never contain anything other than string|int|float|bool|null
|
||||||
|
|
||||||
/** @var CraftingTransaction|null */
|
|
||||||
protected $craftingTransaction = null;
|
|
||||||
|
|
||||||
/** @var float */
|
/** @var float */
|
||||||
protected $lastRightClickTime = 0.0;
|
protected $lastRightClickTime = 0.0;
|
||||||
/** @var UseItemTransactionData|null */
|
/** @var UseItemTransactionData|null */
|
||||||
@ -349,9 +346,7 @@ class InGamePacketHandler extends PacketHandler{
|
|||||||
$result = $this->handleReleaseItemTransaction($packet->trData);
|
$result = $this->handleReleaseItemTransaction($packet->trData);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->craftingTransaction === null){ //don't sync if we're waiting to complete a crafting transaction
|
$this->inventoryManager->syncMismatchedPredictedSlotChanges();
|
||||||
$this->inventoryManager->syncMismatchedPredictedSlotChanges();
|
|
||||||
}
|
|
||||||
$this->inventoryManager->setCurrentItemStackRequestId(null);
|
$this->inventoryManager->setCurrentItemStackRequestId(null);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user