mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 19:55:06 +00:00
Should already be fixed | Fix Unneeded
This commit is contained in:
1 parent
20ff27da9a
commit
e044889b33
2 files changed
-11
No files matched your search
@@ -54,9 +54,6 @@ public class AnimationData implements IAnimationData {
|
||||
EntityLivingBase sendingEntity = parent instanceof PlayerData ? ((PlayerData) parent).player : parent instanceof DataDisplay ? ((DataDisplay) parent).npc : null;
|
||||
float range = parent instanceof PlayerData ? 160 : 60;
|
||||
if (sendingEntity != null) {
|
||||
if(sendingEntity instanceof EntityNPCInterface && 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,
|
||||
sendingEntity.posX + range, sendingEntity.posY + range, sendingEntity.posZ + range));
|
||||
|
||||
@@ -390,18 +390,10 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
public void updateClient() {
|
||||
NBTTagCompound compound = writeSpawnData();
|
||||
compound.setInteger("EntityId", getEntityId());
|
||||
fixDimensionID();
|
||||
Server.sendAssociatedData(this, EnumPacketClient.UPDATE_NPC, compound);
|
||||
updateClient = false;
|
||||
}
|
||||
|
||||
public void fixDimensionID(){
|
||||
if(worldObj == null || worldObj.provider == null || this.dimension == worldObj.provider.dimensionId)
|
||||
return;
|
||||
this.dimension = worldObj.provider.dimensionId;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean interact(EntityPlayer player) {
|
||||
if(worldObj.isRemote)
|
||||
|
||||
Reference in new issue
Block a user