mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 22:14:45 +00:00
Fixed the Snowflake Pendant not placing blocks in the correct location under some circunstances.
This commit is contained in:
1 parent
4dc9df4172
commit
035bf6a6d6
1 file changed
+4
-3
@@ -22,6 +22,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ChunkCoordinates;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
import baubles.api.BaubleType;
|
||||
@@ -50,9 +51,9 @@ public class ItemIcePendant extends ItemBauble {
|
||||
tickIceRemovers(player);
|
||||
|
||||
if(!player.isSneaking() && !player.isInsideOfMaterial(Material.water)) {
|
||||
int x = (int) player.posX;
|
||||
int y = (int) player.posY - (player.isInWater() ? 0 : 1) - (player.worldObj.isRemote ? 1 : 0);
|
||||
int z = (int) player.posZ;
|
||||
int x = (int) MathHelper.floor_double(player.posX);
|
||||
int y = (int) MathHelper.floor_double(player.posY - (player.isInWater() ? 0 : 1) - (player.worldObj.isRemote ? 1 : 0));
|
||||
int z = (int) MathHelper.floor_double(player.posZ);
|
||||
|
||||
int range = 3;
|
||||
for(int i = -range - 1; i < range; i++)
|
||||
|
||||
Reference in new issue
Block a user