mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00: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;
|
||||
|
||||
Reference in new issue
Block a user