mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 18:54:53 +00:00
Cape Invisibility | MPM Dependency Fix
This commit is contained in:
1 parent
5785b643b0
commit
16edeabb9a
5 files changed
+88
-72
No files matched your search
@@ -8,6 +8,7 @@ import net.minecraft.world.World;
|
||||
import noppes.npcs.CustomNpcs;
|
||||
import noppes.npcs.ModelData;
|
||||
import noppes.npcs.ModelPartData;
|
||||
import noppes.npcs.VersionCompatibility;
|
||||
import noppes.npcs.client.EntityUtil;
|
||||
|
||||
public class EntityCustomNpc extends EntityNPCFlying {
|
||||
@@ -19,9 +20,12 @@ public class EntityCustomNpc extends EntityNPCFlying {
|
||||
|
||||
@Override
|
||||
public void readEntityFromNBT(NBTTagCompound compound) {
|
||||
if(compound.hasKey("NpcModelData"))
|
||||
modelData.readFromNBT(compound.getCompoundTag("NpcModelData"));
|
||||
super.readEntityFromNBT(compound);
|
||||
if(compound.hasKey("NpcModelData")) {
|
||||
npcVersion = compound.getInteger("ModRev");
|
||||
VersionCompatibility.CheckModelCompatibility(this, compound);
|
||||
modelData.readFromNBT(compound.getCompoundTag("NpcModelData"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user