mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 09:17:39 +00:00
Fixes LongRangeBuildTool tool (#1005)
This commit is contained in:
parent
b96cea75b8
commit
e40d3e3c19
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user