Fix Dimension ID handling

This commit is contained in:
Kam committed 2024-02-20 00:39:51 -05:00
1 parent 75dc7ed95c
commit 2cc5e31dc7
2 files changed
+8 -1

No files matched your search

@@ -55,7 +55,7 @@ public class AnimationData implements IAnimationData {
float range = parent instanceof PlayerData ? 160 : 60;
if (sendingEntity != null) {
if(sendingEntity instanceof EntityNPCInterface && sendingEntity.dimension != sendingEntity.worldObj.provider.dimensionId)
sendingEntity.dimension = sendingEntity.worldObj.provider.dimensionId;
((EntityNPCInterface) sendingEntity).fixDimensionID();
List<EntityPlayer> entities = sendingEntity.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(
sendingEntity.posX - range, sendingEntity.posY - range, sendingEntity.posZ - range,