mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
Fix missing default textures and possibly very fast speeds crashing rendering on projectile weapons #1369
This commit is contained in:
1 parent
74e180d561
commit
1992829430
1 file changed
+2
@@ -278,6 +278,8 @@ public abstract class ProjectileWeapon extends ToolCore implements IAccuracy, IW
|
||||
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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user