From cb5c4ebf14d62eeb1ee6cebba6599828401a371a Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Fri, 23 Jul 2021 01:27:41 +0200 Subject: [PATCH] cleanup --- src/main/java/me/youhavetrouble/blockedit/BEPlayer.java | 5 +---- .../me/youhavetrouble/blockedit/operations/SetOperation.java | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/me/youhavetrouble/blockedit/BEPlayer.java b/src/main/java/me/youhavetrouble/blockedit/BEPlayer.java index 25465cc..9e46408 100644 --- a/src/main/java/me/youhavetrouble/blockedit/BEPlayer.java +++ b/src/main/java/me/youhavetrouble/blockedit/BEPlayer.java @@ -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 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; diff --git a/src/main/java/me/youhavetrouble/blockedit/operations/SetOperation.java b/src/main/java/me/youhavetrouble/blockedit/operations/SetOperation.java index 44a0d58..4c14c8d 100644 --- a/src/main/java/me/youhavetrouble/blockedit/operations/SetOperation.java +++ b/src/main/java/me/youhavetrouble/blockedit/operations/SetOperation.java @@ -35,8 +35,6 @@ public class SetOperation { processChunkWork(chunkwork.get(element.getAndDecrement()), bePlayer.getSelectionWorld()); } }, 0, 1); - - } private void processChunkWork(ChunkWork chunkWork, UUID worldUuid) {