Cyclops Core

Cyclops Core

111M Downloads

Inconsistency in indexed inventories

lmartos opened this issue ยท 2 comments

commented

Hello, we're playing with the 1.12 version of this mod and every time someone moves an item between an inventory, be it a chest, an ME system or any other inventory this specific error pops up in the server console and laggs out the server momentarily.

[Cyclops Core]: Indexed inventory at inconsistent with last empty 728 and last non-empty 728.

commented

That warning is only thrown when something goes wrong inside a Colossal Chest, which must be a bug indeed. Nothing else happens other than printing the warning, as can be seen here:

if (firstEmptySlot == firstNonEmptySlot) CyclopsCore.clog(Level.WARN, String.format(
"Indexed inventory at inconsistent with first empty %s and first non-empty %s.", firstEmptySlot, firstNonEmptySlot));
if (lastEmptySlot == lastNonEmptySlot) CyclopsCore.clog(Level.WARN, String.format(
"Indexed inventory at inconsistent with last empty %s and last non-empty %s.", lastEmptySlot, lastNonEmptySlot));

So this is unlikely to be the cause of your lag.

commented

Note to self: write some unit tests in IndexedInventory to see what may be going wrong.