mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 15:22:57 +00:00
Add missing changes
This commit is contained in:
1 parent
ca7d6dbc66
commit
c840945706
3 files changed
+13
-2
No files matched your search
@@ -519,4 +519,10 @@ public class TileLeaves extends TileTreeContainer implements IPollinatable, IFru
|
||||
public EnumHumidity getHumidity() {
|
||||
return EnumHumidity.getFromValue(ClimateUtil.getHumidity(world, pos));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public World getWorldObj() {
|
||||
return world;
|
||||
}
|
||||
}
|
||||
@@ -114,6 +114,11 @@ public class FakeGreenhouseController extends FakeMultiblockController implement
|
||||
public void setControlClimate(IClimateInfo climateControl) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean spawnButterfly(Nursery nursery) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean spawnButterfly(IButterfly butterfly) {
|
||||
|
||||
@@ -712,11 +712,11 @@ public class GreenhouseController extends RectangularMultiblockControllerBase im
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean spawnButterfly(IButterflyCocoon cocoon) {
|
||||
public boolean spawnButterfly(IGreenhouseComponent.Nursery nursery) {
|
||||
for(IInternalBlock block : internalBlocks){
|
||||
BlockPos pos = block.getPos();
|
||||
if(world.isAirBlock(pos)){
|
||||
if(ButterflyUtils.spawnButterfly(cocoon, world, pos)){
|
||||
if(ButterflyUtils.spawnButterfly(nursery.getCaterpillar(), world, pos)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user