Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Fixed non-integer radius support for /thaw and /snow.
Dieser Commit ist enthalten in:
Ursprung
ea445ebcf5
Commit
6c5d1236c7
@ -1923,7 +1923,7 @@ public class EditSession {
|
|||||||
public int thaw(Vector pos, double radius)
|
public int thaw(Vector pos, double radius)
|
||||||
throws MaxChangedBlocksException {
|
throws MaxChangedBlocksException {
|
||||||
int affected = 0;
|
int affected = 0;
|
||||||
int radiusSq = (int)Math.pow(radius, 2);
|
double radiusSq = radius*radius;
|
||||||
|
|
||||||
int ox = pos.getBlockX();
|
int ox = pos.getBlockX();
|
||||||
int oy = pos.getBlockY();
|
int oy = pos.getBlockY();
|
||||||
@ -1972,7 +1972,7 @@ public class EditSession {
|
|||||||
public int simulateSnow(Vector pos, double radius)
|
public int simulateSnow(Vector pos, double radius)
|
||||||
throws MaxChangedBlocksException {
|
throws MaxChangedBlocksException {
|
||||||
int affected = 0;
|
int affected = 0;
|
||||||
int radiusSq = (int)Math.pow(radius, 2);
|
double radiusSq = radius*radius;
|
||||||
|
|
||||||
int ox = pos.getBlockX();
|
int ox = pos.getBlockX();
|
||||||
int oy = pos.getBlockY();
|
int oy = pos.getBlockY();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren