Merge pull request #980 from sdburns1998/bye-game

client: Fix game crash
This commit is contained in:
Tyler Bochard
2019-07-11 02:23:49 -04:00
committed by GitHub

View File

@@ -86,10 +86,17 @@ public abstract class RSItemContainerMixin implements RSItemContainer
return; return;
} }
InventoryID container = InventoryID.getValue(itemContainerId);
if (container == null)
{
return;
}
rl$lastCycle = cycle; rl$lastCycle = cycle;
rl$lastContainer = itemContainerId; rl$lastContainer = itemContainerId;
ItemContainerChanged event = new ItemContainerChanged(itemContainerId, client.getItemContainer(InventoryID.getValue(itemContainerId))); ItemContainerChanged event = new ItemContainerChanged(itemContainerId, client.getItemContainer(container));
client.getCallbacks().postDeferred(event); client.getCallbacks().postDeferred(event);
} }
} }