made zAverage divide by 2
unlike xAverage, which adds both values then divides by 2, zAverage just added them both together. I’m guessing this was a mistake so I’m fixing it.
This commit is contained in:
parent
e86754efcb
commit
b32970956d
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ public class RandomTPModule{
|
|||
|
||||
//INIT - zDifference, zAverage
|
||||
int zdifference = minLocation.getBlockX() - maxLocation.getBlockY();
|
||||
int zAverage = (int) Math.floor(minLocation.getBlockZ() + maxLocation.getBlockZ());
|
||||
int zAverage = (int) Math.floor(minLocation.getBlockZ() + maxLocation.getBlockZ() / 2);
|
||||
|
||||
//CHECK - Reset Cycle
|
||||
if (!(northUsed || southUsed || eastUsed || westUsed)){
|
||||
|
|
Loading…
Reference in a new issue