Fixes LongRangeBuildTool tool (#1005)

Dieser Commit ist enthalten in:
Aurélien 2021-04-02 23:03:59 +02:00 committet von GitHub
Ursprung b96cea75b8
Commit e40d3e3c19
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -63,7 +63,6 @@ public class LongRangeBuildTool extends BrushTool implements DoubleActionTraceTo
try (EditSession editSession = session.createEditSession(player, "LongRangeBuildTool")) { try (EditSession editSession = session.createEditSession(player, "LongRangeBuildTool")) {
try { try {
editSession.disableBuffering();
BlockVector3 blockPoint = pos.toVector().toBlockPoint(); BlockVector3 blockPoint = pos.toVector().toBlockPoint();
BaseBlock applied = secondary.apply(blockPoint); BaseBlock applied = secondary.apply(blockPoint);
if (applied.getBlockType().getMaterial().isAir()) { if (applied.getBlockType().getMaterial().isAir()) {
@ -93,7 +92,6 @@ public class LongRangeBuildTool extends BrushTool implements DoubleActionTraceTo
try (EditSession editSession = session.createEditSession(player, "LongRangeBuildTool")) { try (EditSession editSession = session.createEditSession(player, "LongRangeBuildTool")) {
try { try {
editSession.disableBuffering();
BlockVector3 blockPoint = pos.toVector().toBlockPoint(); BlockVector3 blockPoint = pos.toVector().toBlockPoint();
BaseBlock applied = primary.apply(blockPoint); BaseBlock applied = primary.apply(blockPoint);
if (applied.getBlockType().getMaterial().isAir()) { if (applied.getBlockType().getMaterial().isAir()) {