mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 14:53:05 +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
@@ -18,7 +18,6 @@ import cpw.mods.fml.common.eventhandler.Event.Result;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
import forestry.core.config.ForestryBlock;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.farming.blocks.BlockMushroom;
|
||||
|
||||
public class EventHandlerFarming {
|
||||
@@ -26,7 +25,7 @@ public class EventHandlerFarming {
|
||||
@SubscribeEvent
|
||||
public void handleBonemeal(BonemealEvent event) {
|
||||
|
||||
if (!Proxies.common.isSimulating(event.world)) {
|
||||
if (event.world.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.core.blocks.BlockStructure;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.core.render.ParticleHelper;
|
||||
import forestry.core.utils.ItemStackUtil;
|
||||
import forestry.farming.render.EnumFarmBlockTexture;
|
||||
@@ -98,7 +97,7 @@ public class BlockFarm extends BlockStructure {
|
||||
@Override
|
||||
public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z) {
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (Proxies.common.isSimulating(world) && canHarvestBlock(player, meta)) {
|
||||
if (!world.isRemote && canHarvestBlock(player, meta)) {
|
||||
List<ItemStack> drops = getDrops(world, x, y, z, 0, 0);
|
||||
for (ItemStack drop : drops) {
|
||||
ItemStackUtil.dropItemStackAsEntity(drop, world, x, y, z);
|
||||
|
||||
@@ -30,7 +30,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.core.blocks.IItemTyped;
|
||||
import forestry.core.config.Constants;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.farming.worldgen.WorldGenBigMushroom;
|
||||
|
||||
public class BlockMushroom extends BlockSapling implements IItemTyped {
|
||||
@@ -76,7 +75,7 @@ public class BlockMushroom extends BlockSapling implements IItemTyped {
|
||||
@Override
|
||||
public void updateTick(World world, int i, int j, int k, Random random) {
|
||||
|
||||
if (!Proxies.common.isSimulating(world)) {
|
||||
if (world.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user