Closed TheLegionCrazy closed 4 years ago
Sooo. I looked at some of the item components. And I saw that you are using some shit line: player.updateInventory()
On updateInventory call it serializing many-many stacks:
Don't use it. Use: player.setItemInMainHand(player.getItemInMainHand());
For example, if 10 players will place War Camp, it'll create big lags
It would be better to link the actual lines in code, especially since Searching is disabled on forks on github.
https://github.com/ataranlen/civcraft/blob/1.8-dev/civcraft/src/com/avrgaming/civcraft/listener/CustomItemManager.java#L610 (most calls are here)
Sooo. I looked at some of the item components. And I saw that you are using some shit line: player.updateInventory()
On updateInventory call it serializing many-many stacks:
Don't use it. Use: player.setItemInMainHand(player.getItemInMainHand());
For example, if 10 players will place War Camp, it'll create big lags