From ab7c7fc2dee4e7a4139b9c47a7acfd4b1aaa4e02 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 14 Jan 2017 09:09:33 +0100 Subject: updated forge and mappings, removed some images not in use --- src/main/java/com/sosnitzka/taiga/util/EntityAIPermanentPanic.java | 2 +- src/main/java/com/sosnitzka/taiga/util/Generator.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/sosnitzka/taiga/util') diff --git a/src/main/java/com/sosnitzka/taiga/util/EntityAIPermanentPanic.java b/src/main/java/com/sosnitzka/taiga/util/EntityAIPermanentPanic.java index 4b9bf30..6d73c0a 100644 --- a/src/main/java/com/sosnitzka/taiga/util/EntityAIPermanentPanic.java +++ b/src/main/java/com/sosnitzka/taiga/util/EntityAIPermanentPanic.java @@ -38,7 +38,7 @@ public class EntityAIPermanentPanic extends EntityAIBase { this.randPosZ = vec3d.zCoord; if (this.theEntityCreature.isBurning()) { - BlockPos blockpos = this.getRandPos(this.theEntityCreature.worldObj, this.theEntityCreature, 5, 4); + BlockPos blockpos = this.getRandPos(this.theEntityCreature.world, this.theEntityCreature, 5, 4); if (blockpos != null) { this.randPosX = (double) blockpos.getX(); diff --git a/src/main/java/com/sosnitzka/taiga/util/Generator.java b/src/main/java/com/sosnitzka/taiga/util/Generator.java index 18bf42f..a7f53e1 100644 --- a/src/main/java/com/sosnitzka/taiga/util/Generator.java +++ b/src/main/java/com/sosnitzka/taiga/util/Generator.java @@ -217,7 +217,7 @@ public class Generator { for (int x = -t; x <= t; x++) { for (int y = -t; y <= t; y++) { for (int z = -t; z <= t; z++) { - if (MathHelper.sqrt_double(x * x + y * y + z * z) > t) { + if (MathHelper.sqrt(x * x + y * y + z * z) > t) { continue; } world.setBlockState(new BlockPos(cPos.getX() + x, cPos.getY() + y, cPos.getZ() + z), centerBlock); @@ -227,7 +227,7 @@ public class Generator { for (int x = -r; x <= r; x++) { for (int y = -r; y <= r; y++) { for (int z = -r; z <= r; z++) { - if (MathHelper.sqrt_double(x * x + y * y + z * z) > r) { + if (MathHelper.sqrt(x * x + y * y + z * z) > r) { continue; } BlockPos nPos = new BlockPos(cPos.getX() + x, cPos.getY() + y, cPos.getZ() + z); -- cgit v1.2.3