Preemptive bugfixing part 3

This commit is contained in:
ceikry
2021-07-26 08:57:58 -05:00
parent 1b7c2914cb
commit 0ab08f698b
91 changed files with 254 additions and 371 deletions
@@ -58,7 +58,7 @@ public final class NPCDefinition extends Definition<NPC> {
public boolean isVisibleOnMap;
public String examine;
/* public String examine;*/
/**
* The drop tables.
@@ -623,6 +623,8 @@ public final class NPCDefinition extends Definition<NPC> {
case 4:
name = NPCConfigParser.DEATH_ANIMATION;
break;
default:
break;
}
return getConfiguration(name, null);
}
@@ -64,12 +64,11 @@ public class RenderAnimationDefinition {
* @return The render animation definitions.
*/
public static RenderAnimationDefinition forId(int animId) {
RenderAnimationDefinition defs = new RenderAnimationDefinition();
if (animId == -1) {
return null;
}
byte[] data = Cache.getIndexes()[2].getFileData(32, animId);
defs = new RenderAnimationDefinition();
RenderAnimationDefinition defs = new RenderAnimationDefinition();
if (data != null) {
defs.parse(ByteBuffer.wrap(data));
} else {