Constrain inventory transaction predictions

these are now only used for actions done with a closed inventory window. This means that they can only predict the slots of inventory, offhand and armor (total 41 slots) and perhaps include some DropItem actions.
This commit is contained in:
Dylan K. Taylor
2023-01-05 21:18:30 +00:00
parent 36525d9055
commit b24eb153f9
2 changed files with 10 additions and 1 deletions

View File

@@ -328,7 +328,7 @@ class InGamePacketHandler extends PacketHandler{
public function handleInventoryTransaction(InventoryTransactionPacket $packet) : bool{
$result = true;
if(count($packet->trData->getActions()) > 100){
if(count($packet->trData->getActions()) > 50){
throw new PacketHandlingException("Too many actions in inventory transaction");
}