Fixed staves and orbs particles

-Also fixed air stuff SMP crash
This commit is contained in:
GotoLink 2014-03-16 23:37:30 +01:00
commit 06f1cbcce9
10 changed files with 66 additions and 97 deletions

View file

@ -87,9 +87,8 @@ public class ItemStaffWater extends ItemStaff {
@Override
public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) {
EntityPlayer player = (EntityPlayer) entity;
if (!world.isRemote && par5) {
MysticWorld.proxy.waterFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F);
if (par5) {
MysticWorld.proxy.waterFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F);
}
}
}