
Crashes on the dedicated server
coderbot16 opened this issue ยท 1 comments
Registry#containsId
only exists on the client, so accessing it on the server crashes.
@Environment(EnvType.CLIENT)
public abstract boolean containsId(Identifier id);
It looks like the place where this is used is just sanity checking code:
It could be better to use getIds().contains()
instead.