diff --git a/src/main/java/noppes/npcs/ModelPartData.java b/src/main/java/noppes/npcs/ModelPartData.java index 72b55aa14..2cbe59974 100644 --- a/src/main/java/noppes/npcs/ModelPartData.java +++ b/src/main/java/noppes/npcs/ModelPartData.java @@ -35,10 +35,6 @@ public class ModelPartData { type = compound.getByte("Type"); color = compound.getInteger("Color"); texture = compound.getString("Texture"); - // MPM Texture Fix - if(texture.contains("moreplayermodels:textures")){ - texture = texture.replace("moreplayermodels:textures", "customnpcs:textures/parts"); - } playerTexture = compound.getBoolean("PlayerTexture"); location = null; } diff --git a/src/main/java/noppes/npcs/VersionCompatibility.java b/src/main/java/noppes/npcs/VersionCompatibility.java index a1f935240..9891c6479 100644 --- a/src/main/java/noppes/npcs/VersionCompatibility.java +++ b/src/main/java/noppes/npcs/VersionCompatibility.java @@ -12,11 +12,21 @@ import noppes.npcs.controllers.Lines; import noppes.npcs.entity.EntityNPCInterface; public class VersionCompatibility { - public static int ModRev = 16; + public static int ModRev = 17; public static void CheckNpcCompatibility(EntityNPCInterface npc, NBTTagCompound compound){ if(npc.npcVersion == ModRev) return; + if(npc.npcVersion < 17){ + // Fix DialogDarkenScreen + if(compound.hasKey("DialogDarkenScreen")){ + compound.removeTag("DialogDarkenScreen"); + } + // Remove MPM Texture Requirement + String texture = compound.getString("Texture"); + texture = texture.replace("moreplayermodels:textures", "customnpcs:textures/parts"); + compound.setString("Texture", texture); + } if(npc.npcVersion < 12){ CompatabilityFix(compound, npc.advanced.writeToNBT(new NBTTagCompound())); CompatabilityFix(compound, npc.ai.writeToNBT(new NBTTagCompound())); diff --git a/src/main/java/noppes/npcs/controllers/Dialog.java b/src/main/java/noppes/npcs/controllers/Dialog.java index 05155e347..1a332473e 100644 --- a/src/main/java/noppes/npcs/controllers/Dialog.java +++ b/src/main/java/noppes/npcs/controllers/Dialog.java @@ -67,10 +67,7 @@ public class Dialog implements ICompatibilty, IDialog { else { darkenScreen = true; } - // Temporary Remove after Few Versions - if(compound.hasKey("DialogDarkenScreen")){ - compound.removeTag("DialogDarkenScreen"); - } + NBTTagList options = compound.getTagList("Options", 10); HashMap newoptions = new HashMap(); @@ -104,10 +101,6 @@ public class Dialog implements ICompatibilty, IDialog { compound.setBoolean("DialogDisableEsc", disableEsc); compound.setBoolean("DialogDarkScreen", darkenScreen); - // Temporary Remove after Few Versions - if(compound.hasKey("DialogDarkenScreen")){ - compound.removeTag("DialogDarkenScreen"); - } if(sound != null && !sound.isEmpty()) compound.setString("DialogSound", sound); diff --git a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java index 1bd0508e3..c8b672a82 100644 --- a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java +++ b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java @@ -140,7 +140,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti public boolean updateClient = false; public boolean updateAI = false; -// Fly Change public FlyingMoveHelper flyMoveHelper = new FlyingMoveHelper(this); public PathNavigate flyNavigator = new PathNavigateFlying(this, worldObj);