Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-07 20:10:06 +01:00
fix #550
Dieser Commit ist enthalten in:
Ursprung
61fd8c0de5
Commit
aeccce24a9
@ -143,23 +143,27 @@ public class AsyncPlayer extends PlayerProxy {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void floatAt(int x, int y, int z, boolean alwaysGlass) {
|
public void floatAt(int x, int y, int z, boolean alwaysGlass) {
|
||||||
RuntimeException caught = null;
|
if (alwaysGlass || !isAllowedToFly()) {
|
||||||
try {
|
RuntimeException caught = null;
|
||||||
EditSession edit = new EditSessionBuilder(WorldWrapper.unwrap(getWorld()))
|
try {
|
||||||
.player(unwrap(getBasePlayer())).build();
|
EditSession edit =
|
||||||
edit.setBlock(BlockVector3.at(x, y - 1, z), BlockTypes.GLASS);
|
new EditSessionBuilder(WorldWrapper.unwrap(getWorld())).player(unwrap(getBasePlayer())).build();
|
||||||
edit.flushQueue();
|
edit.setBlock(BlockVector3.at(x, y - 1, z), BlockTypes.GLASS);
|
||||||
LocalSession session = Fawe.get().getWorldEdit().getSessionManager().get(this);
|
edit.flushQueue();
|
||||||
if (session != null) {
|
LocalSession session = Fawe.get().getWorldEdit().getSessionManager().get(this);
|
||||||
session.remember(edit, true, getBasePlayer().getLimit().MAX_HISTORY);
|
if (session != null) {
|
||||||
|
session.remember(edit, true, getBasePlayer().getLimit().MAX_HISTORY);
|
||||||
|
}
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
caught = e;
|
||||||
}
|
}
|
||||||
} catch (RuntimeException e) {
|
if (caught != null) {
|
||||||
caught = e;
|
throw caught;
|
||||||
}
|
}
|
||||||
setPosition(Vector3.at(x + 0.5, y, z + 0.5));
|
} else {
|
||||||
if (caught != null) {
|
setFlying(true);
|
||||||
throw caught;
|
|
||||||
}
|
}
|
||||||
|
trySetPosition(Vector3.at(x + 0.5, y, z + 0.5));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren