mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Fix 64x64 Entity - Restore Textures
Restore Textures to fix conflicts with Zombie, Skeleton and other entities.
This commit is contained in:
1 parent
abf70368e1
commit
c3e5b5e9db
620 files changed
+3
-9
No files matched your search
@@ -19,17 +19,11 @@ public class VersionCompatibility {
|
||||
public static void CheckNpcCompatibility(EntityNPCInterface npc, NBTTagCompound compound){
|
||||
if(npc.npcVersion == ModRev)
|
||||
return;
|
||||
if(npc.npcVersion < 19){
|
||||
// Fix 64-Textures
|
||||
String texture = compound.getString("Texture");
|
||||
texture = texture.replace("64-Textures/", "");
|
||||
compound.setString("Texture", texture);
|
||||
|
||||
if(npc.npcVersion < 19) {
|
||||
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