NPE on clientside when calling spawnParticles using ClientLevel
Linguardium opened this issue ยท 2 comments
it seems this method should be taking in a ServerLevel (or a ServerLevelAccessor) since it expects getServer() to never be null. Alternatively, a null check or nullable Optional could be used here.
yeah dont call it from the client. it is rare for minecraft to explicitly give a ClientLevel/ServerLevel, so the cast helps streamline the helper's use in code since we have more general access to Level#isClientSide