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:
BuildTools 2016-10-22 21:24:10 -04:00
parent e86754efcb
commit b32970956d

View file

@ -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)){