Skip to content

Commit

Permalink
Fix incorrect bugfix that didn't fix a crash and broke bow animations
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Feb 21, 2015
1 parent 8de3882 commit 4971506
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/tconstruct/library/event/ModifyEvent.java
@@ -0,0 +1,4 @@
package tconstruct.library.event;

public class ModifyEvent {
}
Expand Up @@ -282,7 +282,7 @@ protected IIcon getCorrectAnimationIcon(Map<Integer, IIcon[]> icons, int id, flo
float count = icons.get(-1).length - 1;
int step = Math.round(progress * count);

step = Math.min(0, step);
step = Math.max(0, step);

if(icons.containsKey(id))
return icons.get(id)[step];
Expand Down

0 comments on commit 4971506

Please sign in to comment.