Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 01:50:06 +01:00
Fixed flipping of the central blocks in a clipboard with odd length.
Dieser Commit ist enthalten in:
Ursprung
8e84e7ae18
Commit
c8bbcbd133
@ -182,7 +182,7 @@ public class CuboidClipboard {
|
||||
|
||||
switch (dir) {
|
||||
case NORTH_SOUTH:
|
||||
int wid = (int)Math.ceil(width / 2);
|
||||
int wid = (int)Math.ceil(width / 2.0f);
|
||||
for (int xs = 0; xs < wid; ++xs) {
|
||||
for (int z = 0; z < length; ++z) {
|
||||
for (int y = 0; y < height; ++y) {
|
||||
@ -208,7 +208,7 @@ public class CuboidClipboard {
|
||||
break;
|
||||
|
||||
case WEST_EAST:
|
||||
int len = (int)Math.ceil(length / 2);
|
||||
int len = (int)Math.ceil(length / 2.0f);
|
||||
for (int zs = 0; zs < len; ++zs) {
|
||||
for (int x = 0; x < width; ++x) {
|
||||
for (int y = 0; y < height; ++y) {
|
||||
@ -233,7 +233,7 @@ public class CuboidClipboard {
|
||||
break;
|
||||
|
||||
case UP_DOWN:
|
||||
int hei = (int)Math.ceil(height / 2);
|
||||
int hei = (int)Math.ceil(height / 2.0f);
|
||||
for (int ys = 0; ys < hei; ++ys) {
|
||||
for (int x = 0; x < width; ++x) {
|
||||
for (int z = 0; z < length; ++z) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren