mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 16:39:49 +00:00
Various Fixes 🐶
This commit is contained in:
1 parent
12c50d5f6a
commit
3e58013ad6
12 files changed
+268
-10
No files matched your search
@@ -772,7 +772,11 @@ public class EntityAbilityZone extends Entity implements IEntityAdditionalSpawnD
|
||||
effectList.appendTag(effect.writeNBT());
|
||||
}
|
||||
effectsNbt.setTag("Effects", effectList);
|
||||
ByteBufUtils.writeNBT(buffer, effectsNbt);
|
||||
try {
|
||||
ByteBufUtils.writeNBT(buffer, effectsNbt);
|
||||
} catch (java.io.IOException e) {
|
||||
noppes.npcs.LogWriter.error("Error writing zone effects spawn data", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -818,7 +822,12 @@ public class EntityAbilityZone extends Entity implements IEntityAdditionalSpawnD
|
||||
this.visible = buffer.readBoolean();
|
||||
|
||||
// Effects
|
||||
NBTTagCompound effectsNbt = ByteBufUtils.readNBT(buffer);
|
||||
NBTTagCompound effectsNbt = null;
|
||||
try {
|
||||
effectsNbt = ByteBufUtils.readNBT(buffer);
|
||||
} catch (java.io.IOException e) {
|
||||
noppes.npcs.LogWriter.error("Error reading zone effects spawn data", e);
|
||||
}
|
||||
effects.clear();
|
||||
if (effectsNbt != null && effectsNbt.hasKey("Effects")) {
|
||||
NBTTagList effectList = effectsNbt.getTagList("Effects", 10);
|
||||
|
||||
Reference in new issue
Block a user