From d5ec702afb38d6fb39ccc750a2b0f16eadf2f0e8 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Wed, 10 Apr 2013 15:33:51 +1000 Subject: [PATCH] Fixed server crash with mudballs for real this time --- src/minecraft/tdwp_ftw/biomesop/ClientProxy.java | 2 +- src/minecraft/tdwp_ftw/biomesop/CommonProxy.java | 1 - .../tdwp_ftw/biomesop/items/projectiles/EntityMudball.java | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/minecraft/tdwp_ftw/biomesop/ClientProxy.java b/src/minecraft/tdwp_ftw/biomesop/ClientProxy.java index 82591778c..9df577604 100644 --- a/src/minecraft/tdwp_ftw/biomesop/ClientProxy.java +++ b/src/minecraft/tdwp_ftw/biomesop/ClientProxy.java @@ -27,7 +27,7 @@ public class ClientProxy extends CommonProxy { RenderingRegistry.registerEntityRenderingHandler(EntityMudball.class, new RenderSnowball(BOPItems.mudBall)); } - @SideOnly(Side.CLIENT) + @Override public void spawnMud(World world, double x, double y, double z, double xVel, double yVel, double zVel) { EntityFX entityfx = null; diff --git a/src/minecraft/tdwp_ftw/biomesop/CommonProxy.java b/src/minecraft/tdwp_ftw/biomesop/CommonProxy.java index 40595eb62..509e88616 100644 --- a/src/minecraft/tdwp_ftw/biomesop/CommonProxy.java +++ b/src/minecraft/tdwp_ftw/biomesop/CommonProxy.java @@ -20,7 +20,6 @@ public class CommonProxy { return 0; } - @SideOnly(Side.CLIENT) public void spawnMud(World world, double x, double y, double z, double xVel, double yVel, double zVel) { diff --git a/src/minecraft/tdwp_ftw/biomesop/items/projectiles/EntityMudball.java b/src/minecraft/tdwp_ftw/biomesop/items/projectiles/EntityMudball.java index 4f4c5168e..0e7ac2347 100644 --- a/src/minecraft/tdwp_ftw/biomesop/items/projectiles/EntityMudball.java +++ b/src/minecraft/tdwp_ftw/biomesop/items/projectiles/EntityMudball.java @@ -39,13 +39,10 @@ public class EntityMudball extends EntityThrowable ((EntityLiving)par1MovingObjectPosition.entityHit).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 300)); } - if (isClient) - { for (int i = 0; i < 16; ++i) { mod_BiomesOPlenty.proxy.spawnMud(this.worldObj, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D); } - } if (!this.worldObj.isRemote) {