brunyman / MPDB

9 stars 2 forks source link

Enchanted items return to their pre-enchantment state and item lost #132

Open minamikana-git opened 5 months ago

minamikana-git commented 5 months ago

2024-06-19_14 50 18 before 2024-06-19_14 52 53 after

Server version

All Paper 1.21-21

This Picture is Survival Server.

minamikana-git commented 5 months ago

My proxy server is Velocity-3.3.0-SNAPSHOT-400 backend (main) server is All Paper 1.21-21

If you have any questions, just ask.

minamikana-git commented 5 months ago

this console message says: ! [Wed 14:29:34 WARN ] java.lang.IllegalStateException: Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment] ! [Wed 14:29:34 WARN ] at com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:287) ! [Wed 14:29:34 WARN ] at com.mojang.serialization.DataResult.getOrThrow(DataResult.java:81) ! [Wed 14:29:34 WARN ] at net.minecraft.world.item.ItemStack.save(ItemStack.java:614) ! [Wed 14:29:34 WARN ] at MysqlPlayerDataBridge-v4.14.0.jar//net.craftersland.data.bridge.utils.nms.Version_1_21_R1.toBase64(Version_1_21_R1.java:63) ! [Wed 14:29:34 WARN ] at MysqlPlayerDataBridge-v4.14.0.jar//net.craftersland.data.bridge.events.handlers.InventoryDataHandler.onDataSaveFunction(InventoryDataHandler.java:181) ! [Wed 14:29:34 WARN ] at MysqlPlayerDataBridge-v4.14.0.jar//net.craftersland.data.bridge.events.PlayerDisconnect$1$1.run(PlayerDisconnect.java:78) ! [Wed 14:29:34 WARN ] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ! [Wed 14:29:34 WARN ] at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ! [Wed 14:29:34 WARN ] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)

[14:29] ! [Wed 14:29:34 WARN ] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ! [Wed 14:29:34 WARN ] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ! [Wed 14:29:34 WARN ] at java.base/java.lang.Thread.run(Thread.java:1570) ! [Wed 14:29:34 WARN ] java.lang.IllegalStateException: Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]; Can't access registry ResourceKey[minecraft:root / minecraft:enchantment] ! [Wed 14:29:34 WARN ] at com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:287) ! [Wed 14:29:34 WARN ] at com.mojang.serialization.DataResult.getOrThrow(DataResult.java:81) ! [Wed 14:29:34 WARN ] at net.minecraft.world.item.ItemStack.save(ItemStack.java:614) ! [Wed 14:29:34 WARN ] at MysqlPlayerDataBridge-v4.14.0.jar//net.craftersland.data.bridge.utils.nms.Version_1_21_R1.toBase64(Version_1_21_R1.java:63) ! [Wed 14:29:34 WARN ] at MysqlPlayerDataBridge-v4.14.0.jar//net.craftersland.data.bridge.events.handlers.InventoryDataHandler.onDataSaveFunction(InventoryDataHandler.java:196) ! [Wed 14:29:34 WARN ] at MysqlPlayerDataBridge-v4.14.0.jar//net.craftersland.data.bridge.events.PlayerDisconnect$1$1.run(PlayerDisconnect.java:78) ! [Wed 14:29:34 WARN ] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ! [Wed 14:29:34 WARN ] at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ! [Wed 14:29:34 WARN ] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ! [Wed 14:29:34 WARN ] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ! [Wed 14:29:34 WARN ] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) [14:29] ! [Wed 14:29:34 WARN ] at java.base/java.lang.Thread.run(Thread.java:1570)

minamikana-git commented 5 months ago

Client: Fabric Minecraft 1.20.6

flysig commented 5 months ago

By rolling back the server the enchantments come back. So you only need to write a new translater and the enchantments are not lost.

interacp commented 4 months ago

This is currently happening on the 1.21 server. The log file above is confirmed to have been uploaded, so I hope for a quick update from the development team.

Gingied commented 4 months ago

Still happening in latest... will we get a fix for this? The (paid btw) project is kinda dead in the water until it- y'know- stores player data as intended.

ETA: Paper/purpur 1.20.5+ tested, ended up reverting to vanilla and loading a backup of playerdata from a few hours ago.

neco222 commented 4 months ago

The exact same problem occurred. Stack items are now one of all, and enchantments are all gone.