Fix #1456 Breaking a Swarm Hive with Botania's Bore Lens crashes the game

This commit is contained in:
Nedelosk committed 2016-10-18 22:05:44 +02:00
1 parent aca6ed1fd8
commit 321e316665
1 file changed
+1 -1
@@ -162,7 +162,7 @@ public class BlockBeeHives extends BlockContainer implements IItemModelRegister,
private static List<IHiveDrop> getDropsForHive(int meta) {
String hiveName = getHiveNameForMeta(meta);
if (hiveName == null) {
if (hiveName == null || hiveName.equals(HiveType.SWARM.getHiveUid())) {
return Collections.emptyList();
}
return PluginApiculture.hiveRegistry.getDrops(hiveName);