
@Environment(EnvType.CLIENT) missing in block definitions
2No2Name opened this issue ยท 2 comments
Calling KitchenCounterOvenBlock.class.getDeclaredMethods() crashes when running a server (not client) due to the missing annotation. Causes CaffeineMC/lithium#635
Solution:
Add @Environment(EnvType.CLIENT)
before the methods that include parameters or return types that are only available in CLIENT environments, e.g. RenderLayer
Known affected blocks:
com.unlikepaladin.pfm.blocks.PendantBlock
com.unlikepaladin.pfm.blocks.StoveBlock
com.unlikepaladin.pfm.blocks.StoveBlock
com.unlikepaladin.pfm.blocks.MicrowaveBlock
com.unlikepaladin.pfm.blocks.KitchenCounterOvenBlock