Fix #1153 crash from interface methods named getWorld

This commit is contained in:
mezz committed 2016-05-11 22:00:49 -07:00
1 parent 0ae2e36e90
commit 5cc181d4c7
43 files changed
+92 -133

No files matched your search

@@ -355,13 +355,13 @@ public class AlvearyController extends RectangularMultiblockControllerBase imple
@Override
public float getExactTemperature() {
BlockPos coords = getReferenceCoord();
return ForestryAPI.climateManager.getTemperature(getWorld(), coords) + tempChange;
return ForestryAPI.climateManager.getTemperature(getWorldObj(), coords) + tempChange;
}
@Override
public float getExactHumidity() {
BlockPos coords = getReferenceCoord();
return ForestryAPI.climateManager.getHumidity(getWorld(), coords) + humidChange;
return ForestryAPI.climateManager.getHumidity(getWorldObj(), coords) + humidChange;
}
@Override
@@ -384,11 +384,6 @@ public class AlvearyController extends RectangularMultiblockControllerBase imple
return getAccessHandler().getOwner();
}
@Override
public World getWorld() {
return worldObj;
}
@Override
public String getUnlocalizedType() {
return "for.multiblock.alveary.type";
@@ -417,8 +412,6 @@ public class AlvearyController extends RectangularMultiblockControllerBase imple
@Override
public void addTemperatureChange(float change, float boundaryDown, float boundaryUp) {
BlockPos coordinates = getCoordinates();
float temperature = ForestryAPI.climateManager.getTemperature(worldObj, getReferenceCoord());
tempChange += change;