Preemptive bugfixing part 3
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user