mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 02:15:11 +00:00
Disable Request Spawn Data
This commit is contained in:
1 parent
c081efd42e
commit
57528f9590
3 files changed
+12
-14
No files matched your search
@@ -1837,18 +1837,18 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
try {
|
||||
readSpawnData(ByteBufUtils.readNBT(buf));
|
||||
} catch (IOException e) {
|
||||
if(this.worldObj != null && this.worldObj.isRemote){
|
||||
RequestProperSpawnData.reportMissingData(this);
|
||||
}
|
||||
// if(this.worldObj != null && this.worldObj.isRemote){
|
||||
// RequestProperSpawnData.reportMissingData(this);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
public void readSpawnData(NBTTagCompound compound) {
|
||||
if (this.worldObj != null && this.worldObj.isRemote &&
|
||||
(compound.hasNoTags() || !compound.hasKey("MaxHealth", Constants.NBT.TAG_DOUBLE))) {
|
||||
RequestProperSpawnData.reportMissingData(this);
|
||||
return;
|
||||
}
|
||||
// if (this.worldObj != null && this.worldObj.isRemote &&
|
||||
// (compound.hasNoTags() || !compound.hasKey("MaxHealth", Constants.NBT.TAG_DOUBLE))) {
|
||||
// RequestProperSpawnData.reportMissingData(this);
|
||||
// return;
|
||||
// }
|
||||
|
||||
immediateSpawnDataFixAttempts = 0;
|
||||
stats.maxHealth = compound.getDouble("MaxHealth");
|
||||
|
||||
Reference in new issue
Block a user