From 903bb153be87becc485a3d4f25cfe6f021351c7a Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Sat, 26 Jul 2014 16:42:00 +0100 Subject: [PATCH] The Snowflake Pendant no longer creates ghost ice blocks in the client and is now properly centered on the player. --- .../common/item/equipment/bauble/ItemIcePendant.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemIcePendant.java b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemIcePendant.java index 5dd302b7a..c6e1cc6b5 100644 --- a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemIcePendant.java +++ b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemIcePendant.java @@ -50,13 +50,13 @@ public class ItemIcePendant extends ItemBauble { if(!player.worldObj.isRemote) tickIceRemovers(player); - if(!player.isSneaking() && !player.isInsideOfMaterial(Material.water)) { + if(!player.isSneaking() && !player.isInsideOfMaterial(Material.water) && !player.worldObj.isRemote) { int x = MathHelper.floor_double(player.posX); - int y = MathHelper.floor_double(player.posY - (player.isInWater() ? 0 : 1) - (player.worldObj.isRemote ? 1 : 0)); + int y = MathHelper.floor_double(player.posY - (player.isInWater() ? 0 : 1)); int z = MathHelper.floor_double(player.posZ); int range = 3; - for(int i = -range - 1; i < range; i++) + for(int i = -range; i < range + 1; i++) for(int j = -range; j < range + 1; j++) { int x1 = x + i; int z1 = z + j;