
[Server] [Client-side class Minecraft] It is not possible to use potions, food and other items.
McPersson opened this issue · 2 comments
Hello! With mod version SE 1.2.1 - 1.20.1, it's not possible to use the Creative World Editor from the Create mod on the server, nor is it possible to drink potions, eat food, and so on. Occurs because the mod attempts to load the client-side class Minecraft in a dedicated server environment, which is not supported.
java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER
at org.infernalstudios.shielde
xp.events.ShieldExpansionEvents.onStartUsing(ShieldExpansionEvents.java:53)
Steps to Reproduce:
- Install Shield Expansion on a Forge 1.20.1 server.
- Trigger the LivingEntityUseItemEvent.Start event (e.g., by using an item in-game).
Environment:
Minecraft Version: 1.20.1
Forge Version: 47.3.10
On the version “ShieldExpansion-1.20.1-1.1.7a.jar” everything is fine.