Shield Expansion

Shield Expansion

14M Downloads

[Server] [Client-side class Minecraft] It is not possible to use potions, food and other items.

McPersson opened this issue · 2 comments

commented

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

Logs Error.txt

On the version “ShieldExpansion-1.20.1-1.1.7a.jar” everything is fine.

commented

This was an oversight during my hotfix yesterday, fixing this right now

commented

fixed in mod version 1.2.2, now available on Curseforge and Modrinth. thank you for bringing this to my attention!