mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 02:42:55 +00:00
HUGE CORE COMMIT
This commit is contained in:
1 parent
57e6934fe5
commit
43a52ad407
125 files changed
+1801
-413
No files matched your search
@@ -13,6 +13,7 @@ import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import noppes.npcs.controllers.data.MagicData;
|
||||
import noppes.npcs.wrapper.nbt.MC1710NBTCompound;
|
||||
|
||||
/**
|
||||
* Universal base class for all energy ability entities (Projectiles, Barriers, Sweeper).
|
||||
@@ -358,7 +359,7 @@ public abstract class EntityEnergyAbility extends Entity implements IEntityAddit
|
||||
if (customDamageData != null) {
|
||||
nbt.setTag("CustomDamageData", customDamageData);
|
||||
}
|
||||
magicData.writeToNBT(nbt);
|
||||
magicData.writeToNBT(new MC1710NBTCompound(nbt));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -373,7 +374,7 @@ public abstract class EntityEnergyAbility extends Entity implements IEntityAddit
|
||||
if (nbt.hasKey("CustomDamageData")) {
|
||||
this.customDamageData = nbt.getCompoundTag("CustomDamageData");
|
||||
}
|
||||
magicData.readToNBT(nbt);
|
||||
magicData.readToNBT(new MC1710NBTCompound(nbt));
|
||||
}
|
||||
|
||||
// ==================== WORLD NBT (INTENTIONALLY EMPTY) ====================
|
||||
|
||||
Reference in new issue
Block a user