[1.20.1] Dedicated server crashes from Passcode-protected Chest
JustAPotota opened this issue ยท 1 comments
Issue description
Dedicated server throws an error when placing Passcode-protected Chest (and similar blocks), and outright crashes with the same error when loading chunks with one of those chests already placed in it.
java.lang.RuntimeException: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER
[...]
at net.geforcemods.securitycraft.blockentities.KeypadChestBlockEntity.onLoad(KeypadChestBlockEntity.java:139) ~[%5B1.20.1%5D%20SecurityCraft%20v1.10.jar%23101!/:1.10] {re:classloading}
Steps to reproduce
- Start up Forge 1.20.1 server with SecurityCraft
- Place Passcode-protected Chest
- Observe error in log
- Restart server
- Attempt to rejoin
- Server crash
Minecraft version
1.20.1
Forge/NeoForge version
47.4.0
SecurityCraft version
v1.10
Other relevant versions
No response
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
Crash report: https://mclo.gs/Sv3ktjR