diff options
| author | Giovanni Harting <539@idlegandalf.com> | 2017-01-14 09:09:33 +0100 |
|---|---|---|
| committer | Giovanni Harting <539@idlegandalf.com> | 2017-01-14 09:09:33 +0100 |
| commit | ab7c7fc2dee4e7a4139b9c47a7acfd4b1aaa4e02 (patch) | |
| tree | 4eb9d0e645d0ff0adf98c5d947464292afac8995 /src/main/java/com/sosnitzka/taiga/util | |
| parent | 251e1d9d78150392807fd753e9ea3d2dfa48bb72 (diff) | |
updated forge and mappings, removed some images not in use
Diffstat (limited to 'src/main/java/com/sosnitzka/taiga/util')
| -rw-r--r-- | src/main/java/com/sosnitzka/taiga/util/EntityAIPermanentPanic.java | 2 | ||||
| -rw-r--r-- | src/main/java/com/sosnitzka/taiga/util/Generator.java | 4 |
2 files changed, 3 insertions, 3 deletions
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); |
