mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 14:24:42 +00:00
Replace !Proxies.common.isSimulating(world) with standard world.isRemote
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user