Paladin's Furniture

Paladin's Furniture

7M Downloads

@Environment(EnvType.CLIENT) missing in block definitions

2No2Name opened this issue ยท 2 comments

commented

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

commented

Oops, slipped past me, thanks 2No2Name

commented

Fixed on 1.4.2, thanks again!