Bandaid for apothecary crashes. Closes #2471, closes #2555

This commit is contained in:
Vincent Lee committed 2018-04-17 10:04:44 -05:00
1 parent 4383e8cbbc
commit 4577e17553
1 file changed
+1 -1
@@ -252,7 +252,7 @@ public class TileAltar extends TileSimpleInventory implements IPetalApothecary,
if(stackAt.isEmpty())
break;
if(Math.random() >= 0.97) {
if(Math.random() >= 0.97 && getFlowerComponent(stackAt) != null) {
Color color = new Color(getFlowerComponent(stackAt).getParticleColor(stackAt));
float red = color.getRed() / 255F;
float green = color.getGreen() / 255F;