From 4da4a7cf566b9cdefcbb0348a6aeb42afd22940b Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 16 Nov 2014 13:32:35 -0800 Subject: [PATCH] Fix hives dropping ignoble drones (which shouldn't exist) --- .../forestry/apiculture/genetics/HiveDrop.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/forestry/apiculture/genetics/HiveDrop.java b/src/main/java/forestry/apiculture/genetics/HiveDrop.java index b6b7165fb..ef296b9f7 100755 --- a/src/main/java/forestry/apiculture/genetics/HiveDrop.java +++ b/src/main/java/forestry/apiculture/genetics/HiveDrop.java @@ -42,22 +42,22 @@ public class HiveDrop implements IHiveDrop { } private IBee createBee(World world) { - IBee bee = PluginApiculture.beeInterface.getBee(world, PluginApiculture.beeInterface.templateAsGenome(template)); - if(world.rand.nextFloat() < ignobleShare) - bee.setIsNatural(false); - return bee; + return PluginApiculture.beeInterface.getBee(world, PluginApiculture.beeInterface.templateAsGenome(template)); } @Override public ItemStack getPrincess(World world, int x, int y, int z, int fortune) { - return PluginApiculture.beeInterface.getMemberStack(createBee(world), EnumBeeType.PRINCESS.ordinal()); + IBee bee = createBee(world); + if(world.rand.nextFloat() < ignobleShare) + bee.setIsNatural(false); + + return PluginApiculture.beeInterface.getMemberStack(bee, EnumBeeType.PRINCESS.ordinal()); } @Override public ArrayList getDrones(World world, int x, int y, int z, int fortune) { ArrayList ret = new ArrayList(); - ret.add(PluginApiculture.beeInterface.getMemberStack(createBee(world), - EnumBeeType.DRONE.ordinal())); + ret.add(PluginApiculture.beeInterface.getMemberStack(createBee(world), EnumBeeType.DRONE.ordinal())); return ret; }