Change HiveType to check spawn location to see if occupant bees can actually work in the biome, and not spawn if they cannot.

This commit is contained in:
MysteriousAges committed 2015-03-26 13:05:15 -07:00
1 parent dc4cd3331c
commit 07624a3a4c
4 files changed
+52 -25

No files matched your search

@@ -185,13 +185,13 @@ public enum HiveDescription implements IHiveDescription {
@Override
public boolean isGoodHumidity(EnumHumidity humidity)
{
return true;
return hiveType.getOccupant().canWorkInHumidity(humidity);
}
@Override
public boolean isGoodTemperature(EnumTemperature temperature)
{
return true;
return hiveType.getOccupant().canWorkInTemperature(temperature);
}
@Override