mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Drowning Compatibility
This commit is contained in:
1 parent
b08f63c4b6
commit
545db302ad
2 files changed
+8
-7
No files matched your search
@@ -24,6 +24,12 @@ public class VersionCompatibility {
|
||||
String texture = compound.getString("Texture");
|
||||
texture = texture.replace("64-Textures/", "");
|
||||
compound.setString("Texture", texture);
|
||||
|
||||
if (compound.hasKey("CanDrown")) {
|
||||
compound.setInteger("DrowningType", (compound.getBoolean("CanDrown") ? 1 : 0));
|
||||
compound.removeTag("CanDrown");
|
||||
}
|
||||
|
||||
}
|
||||
if(npc.npcVersion < 18){
|
||||
// Fix CloakTexture (Reorganization)
|
||||
|
||||
Reference in new issue
Block a user