Replace !Proxies.common.isSimulating(world) with standard world.isRemote

This commit is contained in:
mezz committed 2015-09-25 15:18:24 -07:00
1 parent 1e89bab556
commit 4234c38d69
44 files changed
+66 -102

No files matched your search

@@ -32,7 +32,7 @@ public class TileMillRainmaker extends TileMill {
@Override
public void openGui(EntityPlayer player) {
if (!Proxies.common.isSimulating(player.worldObj)) {
if (player.worldObj.isRemote) {
return;
}
@@ -98,7 +98,7 @@ public class TileMillRainmaker extends TileMill {
Proxies.common.addEntityExplodeFX(worldObj, (f + f4), f1, (f2 + f3));
}
if (Proxies.common.isSimulating(worldObj)) {
if (!worldObj.isRemote) {
if (reverse) {
worldObj.getWorldInfo().setRaining(false);
} else {
@@ -28,7 +28,6 @@ import forestry.core.inventory.wrappers.InventoryMapper;
import forestry.core.network.DataInputStreamForestry;
import forestry.core.network.DataOutputStreamForestry;
import forestry.core.network.GuiId;
import forestry.core.proxy.Proxies;
import forestry.core.recipes.RecipeUtil;
import forestry.core.tiles.TileBase;
import forestry.core.utils.InventoryUtil;
@@ -208,7 +207,7 @@ public class TileWorktable extends TileBase implements ICrafterWorktable {
}
}
if (Proxies.common.isSimulating(worldObj)) {
if (!worldObj.isRemote) {
memorized.memorizeRecipe(worldObj, currentRecipe, currentCrafting);
}