Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Luis C.M committed 2022-06-15 14:07:21 -05:00
commit 8fc73197b8
618 files changed
+7 -1

No files matched your search

@@ -14,11 +14,17 @@ import noppes.npcs.entity.EntityNPCInterface;
import org.lwjgl.Sys;
public class VersionCompatibility {
public static int ModRev = 19;
public static int ModRev = 18;
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 < 18){
// Fix CloakTexture (Reorganization)
String cloakTexture = compound.getString("CloakTexture");