Skip to content

Commit 5af0d51

Browse files
committed
don't show error when no id.inventory animation exists when pickup
1 parent 75da6f3 commit 5af0d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blade-engine/src/com/bladecoder/engine/actions/PickUpAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public boolean run(ActionCallback cb) {
7373

7474
if(animation != null)
7575
a.startAnimation(animation, null);
76-
else
76+
else if(a.getRenderer().getAnimations().get(a.getId() + ".inventory") != null)
7777
a.startAnimation(a.getId() + ".inventory", null);
7878

7979
World.getInstance().getInventory().addItem(a);

0 commit comments

Comments
 (0)