Skip to content

Commit

Permalink
Fix missing default textures and possibly very fast speeds crashing r…
Browse files Browse the repository at this point in the history
…endering on projectile weapons #1369
  • Loading branch information
bonii-xx committed Jan 30, 2015
1 parent 74e180d commit 1992829
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -278,6 +278,8 @@ 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);

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

Expand Down

0 comments on commit 1992829

Please sign in to comment.