3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

lazy //deform AIOOB fix.

Fixes #495
Dieser Commit ist enthalten in:
dordsor21 2020-07-03 16:45:28 +01:00
Ursprung f7d375c76c
Commit e2ab87cc07
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -2506,8 +2506,15 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
int yv = (int) (y.getValue() * unit.getY() + zero2.getY()); int yv = (int) (y.getValue() * unit.getY() + zero2.getY());
int zv = (int) (z.getValue() * unit.getZ() + zero2.getZ()); int zv = (int) (z.getValue() * unit.getZ() + zero2.getZ());
BlockState get;
if (yv >= 0 && yv < 265) {
get = getBlock(xv, yv, zv);
} else {
get = BlockTypes.AIR.getDefaultState();
}
// read block from world // read block from world
return setBlock(position, getBlock(xv, yv, zv)); return setBlock(position, get);
} catch (EvaluationException e) { } catch (EvaluationException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }