Drowning Compatibility

This commit is contained in:
KAMKEEL committed 2022-07-02 23:38:20 -04:00
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)