mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 01:55:15 +00:00
Fixed a crash when you /give yourself a botania flower with the wrong metadata.
This commit is contained in:
1 parent
6e27b47f8b
commit
39ca617266
1 file changed
+1
-1
@@ -101,7 +101,7 @@ public class BlockModFlower extends BlockFlower implements ILexiconable, IPickup
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int par1, int par2) {
|
||||
return (ConfigHandler.altFlowerTextures ? iconsAlt : icons)[par2];
|
||||
return (ConfigHandler.altFlowerTextures ? iconsAlt : icons)[Math.min(icons.length - 1, par2)];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user