Fixed non-integer radius support for /thaw and /snow.

This commit is contained in:
TomyLobo 2011-08-16 18:42:29 +02:00
parent ea445ebcf5
commit 6c5d1236c7

View File

@ -1923,7 +1923,7 @@ public class EditSession {
public int thaw(Vector pos, double radius)
throws MaxChangedBlocksException {
int affected = 0;
int radiusSq = (int)Math.pow(radius, 2);
double radiusSq = radius*radius;
int ox = pos.getBlockX();
int oy = pos.getBlockY();
@ -1972,7 +1972,7 @@ public class EditSession {
public int simulateSnow(Vector pos, double radius)
throws MaxChangedBlocksException {
int affected = 0;
int radiusSq = (int)Math.pow(radius, 2);
double radiusSq = radius*radius;
int ox = pos.getBlockX();
int oy = pos.getBlockY();