This commit is contained in:
YouHaveTrouble
2021-07-23 01:27:41 +02:00
parent a93fe5f635
commit cb5c4ebf14
2 changed files with 1 additions and 6 deletions
@@ -1,7 +1,6 @@
package me.youhavetrouble.blockedit; package me.youhavetrouble.blockedit;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.util.BoundingBox; import org.bukkit.util.BoundingBox;
@@ -13,7 +12,6 @@ public class BEPlayer {
private static final HashMap<UUID, BEPlayer> playerHashMap = new HashMap<>(); private static final HashMap<UUID, BEPlayer> playerHashMap = new HashMap<>();
private BoundingBox selection; private BoundingBox selection;
private Location selectionPoint1, selectionPoint2; private Location selectionPoint1, selectionPoint2;
private UUID selectionWorldUuid;
public BoundingBox getSelection() { public BoundingBox getSelection() {
return selection; return selection;
@@ -32,7 +30,6 @@ public class BEPlayer {
selection = null; selection = null;
return; return;
} }
selectionWorldUuid = selectionPoint1.getWorld().getUID();
selection = BoundingBox.of(selectionPoint1, selectionPoint2); selection = BoundingBox.of(selectionPoint1, selectionPoint2);
// bounding boxes are dumb. // bounding boxes are dumb.
selection.expand(0.5, 0.5, 0.5); selection.expand(0.5, 0.5, 0.5);
@@ -52,7 +49,7 @@ public class BEPlayer {
} }
/** /**
* @return World withinn which the selection is made. * @return UUID of a world within which the selection is made.
*/ */
public UUID getSelectionWorld() { public UUID getSelectionWorld() {
if (selection == null) return null; if (selection == null) return null;
@@ -35,8 +35,6 @@ public class SetOperation {
processChunkWork(chunkwork.get(element.getAndDecrement()), bePlayer.getSelectionWorld()); processChunkWork(chunkwork.get(element.getAndDecrement()), bePlayer.getSelectionWorld());
} }
}, 0, 1); }, 0, 1);
} }
private void processChunkWork(ChunkWork chunkWork, UUID worldUuid) { private void processChunkWork(ChunkWork chunkWork, UUID worldUuid) {