mirror of
https://github.com/YouHaveTrouble/BlockEdit.git
synced 2026-06-29 13:36:19 +00:00
cleanup
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package me.youhavetrouble.blockedit;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.BoundingBox;
|
||||
|
||||
@@ -13,7 +12,6 @@ public class BEPlayer {
|
||||
private static final HashMap<UUID, BEPlayer> playerHashMap = new HashMap<>();
|
||||
private BoundingBox selection;
|
||||
private Location selectionPoint1, selectionPoint2;
|
||||
private UUID selectionWorldUuid;
|
||||
|
||||
public BoundingBox getSelection() {
|
||||
return selection;
|
||||
@@ -32,7 +30,6 @@ public class BEPlayer {
|
||||
selection = null;
|
||||
return;
|
||||
}
|
||||
selectionWorldUuid = selectionPoint1.getWorld().getUID();
|
||||
selection = BoundingBox.of(selectionPoint1, selectionPoint2);
|
||||
// bounding boxes are dumb.
|
||||
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() {
|
||||
if (selection == null) return null;
|
||||
|
||||
@@ -35,8 +35,6 @@ public class SetOperation {
|
||||
processChunkWork(chunkwork.get(element.getAndDecrement()), bePlayer.getSelectionWorld());
|
||||
}
|
||||
}, 0, 1);
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void processChunkWork(ChunkWork chunkWork, UUID worldUuid) {
|
||||
|
||||
Reference in New Issue
Block a user