From b336bc9b4d8fa327d913451d811b6c9ebc36085f Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Mon, 17 Mar 2014 15:00:07 -0500 Subject: [PATCH] Put stuff in chests! --- helpers/MeteoritePlacer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/MeteoritePlacer.java b/helpers/MeteoritePlacer.java index 237720e09..a406b107f 100644 --- a/helpers/MeteoritePlacer.java +++ b/helpers/MeteoritePlacer.java @@ -320,7 +320,7 @@ public class MeteoritePlacer { InventoryAdaptor ap = InventoryAdaptor.getAdaptor( te, ForgeDirection.UP ); - int primary = (int) (Math.random() * 4); + int primary = Math.max( 1, (int) (Math.random() * 4) ); for (int zz = 0; zz < primary; zz++) { switch ((int) (Math.random() * 1000) % 4) @@ -341,7 +341,7 @@ public class MeteoritePlacer } } - int secondary = (int) (Math.random() * 3); + int secondary = Math.max( 1, (int) (Math.random() * 3) ); for (int zz = 0; zz < secondary; zz++) { switch ((int) (Math.random() * 1000) % 3)