From 1992829430272666b728b33bd5ce92ffc5a6a02d Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Fri, 30 Jan 2015 14:58:53 +0100 Subject: [PATCH] Fix missing default textures and possibly very fast speeds crashing rendering on projectile weapons #1369 --- src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java b/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java index 300471e77e0..7bcba19aae5 100644 --- a/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java +++ b/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java @@ -278,6 +278,8 @@ protected IIcon getCorrectAnimationIcon(Map 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];