Nekozuki0509 / MPDS

it's a fabric mod to sync player data between fabric servers. this needs only server side. this mod can sync player's air, health, enderChest, exhaustion, foodLevel, saturationLevel, foodTickTimer, inventory, offhand, armor, selectedSlot, experienceLevel, and experienceProgress.
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

FAIL TO SAVE player's DATA (Can't access registry) #2

Open cr-gomezm opened 2 months ago

cr-gomezm commented 2 months ago

When some users disconnect from server, the following error is printed on console. The server is a JAVA/Bedrock mixed server through Geyser but I have tested both clients with my user and I think this only happens when the player has certain objects in their inventory.

MCServer: 1.21 Fabric Loader: 0.15.11

[23:24:01] [Thread-221/INFO]: saving player's data... [23:24:01] [localSession-7-1/INFO]: player ha sido desconectado del servidor Java debido a Cliente de Bedrock desconectado [23:24:01] [Thread-221/ERROR]: Can't access registry ResourceKey[minecraft:root / minecraft:enchantment] [23:24:01] [Thread-221/ERROR]: FAIL TO SAVE player's DATA: [23:24:01] [Thread-221/INFO]: [STDERR]: java.util.NoSuchElementException: No value present [23:24:01] [Thread-221/INFO]: [STDERR]: at java.base/java.util.Optional.orElseThrow(Optional.java:377) [23:24:01] [Thread-221/INFO]: [STDERR]: at mpds.mpds.MPDS.lambda$ondisconnect$11(MPDS.java:378) [23:24:01] [Thread-221/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Thread.java:1583) [23:24:01] [Server thread/INFO]: player lost connection: Disconnected [23:24:01] [Server thread/INFO]: player left the game

Nekozuki0509 commented 2 months ago

I'm so sorry for being late. I was so busy this summer because I'm high school entrance examination student.

I'm trying to find out what's causing it, but haven't figured it out yet. I think it takes a long time...sorry:(

Nekozuki0509 commented 1 month ago

hello, thank you for waiting.

can you tell what is the item, "certain objects"?

cr-gomezm commented 1 month ago

Heeeello Nekozuki, no, not at all as you see the error references just minecraft:root / minecraft:enchantments.

With an empty character this did not happen. I guess that it could be related to the fact that the user built something that kept in his inventory but I am not sure.

Nekozuki0509 commented 1 month ago

Are you using some mods that adding something new item?