CleanView (Fabric)

CleanView (Fabric)

342k Downloads

[1.15.2] handleClientTickEvent() uses potionEffects in datamanager without checking if the renderViewEntity is a LivingEntity

stepsword opened this issue ยท 0 comments

commented

this.dataManager.register(POTION_EFFECTS, 0);
is only called in the LivingEntity registerData() method, so it should not be used on an Entity object without first checking if it's an instanceof LivingEntity

Causes crashes when using anything that doesn't extend LivingEntity as the renderViewEntity, which is allowed