mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 05:15:11 +00:00
1.5.3 Gradle Update | Add Version Compatibility Changes
Update Version to 1.5.3 Remove Useless String Statements / Comments Add Temporary Fixes to Version Compatibility as permanent fixes
This commit is contained in:
1 parent
32f89f8e92
commit
0732d98ff8
6 files changed
+14
-15
No files matched your search
@@ -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()));
|
||||
|
||||
Reference in new issue
Block a user