TerraFirmaCraft

TerraFirmaCraft

2M Downloads

Nether Portal use gives 'Internal Server Error' and disconnection

p0kes opened this issue ยท 2 comments

commented

Using a Nether Portal causes disconnection from multiplayer server with 'Internal Server Error' message.

Meta Info

  • TFC Version: 0.X.X.138 on test server
commented

Yes, it seems to be crashing on Listener already listening: https://pastebin.com/Rd9Embvx

commented

This can be resolved by removing the listener addition here,

CapabilityContainerListener.addTo(player.inventoryContainer, player);

or by adding a try catch and just ignoring the error here,

container.addListener(CAPABILITY_LISTENERS.computeIfAbsent(player, CapabilityContainerListener::new));

However, both of these are probably related to #667, and this should be fixed with that as we need to track enough player data across dimension changes but apparently our sync capabilities are duplicating themselves.