Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-07 20:10:06 +01:00
Updated /ascend, /descend, and /unstuck to detect pass-through blocks better.
Dieser Commit ist enthalten in:
Ursprung
363372b160
Commit
835a8ee617
@ -76,7 +76,7 @@ public class WorldEditPlayer {
|
|||||||
byte free = 0;
|
byte free = 0;
|
||||||
|
|
||||||
while (y <= 129) {
|
while (y <= 129) {
|
||||||
if (etc.getServer().getBlockIdAt(x, y, z) == 0) {
|
if (BlockType.canPassThrough(etc.getServer().getBlockIdAt(x, y, z))) {
|
||||||
free++;
|
free++;
|
||||||
} else {
|
} else {
|
||||||
free = 0;
|
free = 0;
|
||||||
@ -118,7 +118,7 @@ public class WorldEditPlayer {
|
|||||||
byte spots = 0;
|
byte spots = 0;
|
||||||
|
|
||||||
while (y <= 129) {
|
while (y <= 129) {
|
||||||
if (ServerInterface.getBlockType(new Vector(x, y, z)) == 0) {
|
if (BlockType.canPassThrough(ServerInterface.getBlockType(new Vector(x, y, z)))) {
|
||||||
free++;
|
free++;
|
||||||
} else {
|
} else {
|
||||||
free = 0;
|
free = 0;
|
||||||
@ -159,7 +159,7 @@ public class WorldEditPlayer {
|
|||||||
byte free = 0;
|
byte free = 0;
|
||||||
|
|
||||||
while (y >= 1) {
|
while (y >= 1) {
|
||||||
if (ServerInterface.getBlockType(new Vector(x, y, z)) == 0) {
|
if (BlockType.canPassThrough(ServerInterface.getBlockType(new Vector(x, y, z)))) {
|
||||||
free++;
|
free++;
|
||||||
} else {
|
} else {
|
||||||
free = 0;
|
free = 0;
|
||||||
@ -211,7 +211,7 @@ public class WorldEditPlayer {
|
|||||||
|
|
||||||
while (y <= 127) {
|
while (y <= 127) {
|
||||||
// Found a ceiling!
|
// Found a ceiling!
|
||||||
if (ServerInterface.getBlockType(new Vector(x, y, z)) != 0) {
|
if (!BlockType.canPassThrough(ServerInterface.getBlockType(new Vector(x, y, z)))) {
|
||||||
int platformY = Math.max(initialY, y - 3 - clearance);
|
int platformY = Math.max(initialY, y - 3 - clearance);
|
||||||
ServerInterface.setBlockType(new Vector(x, platformY, z),
|
ServerInterface.setBlockType(new Vector(x, platformY, z),
|
||||||
BlockType.GLASS.getID());
|
BlockType.GLASS.getID());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren