code refactoring

This commit is contained in:
unurled 2024-03-18 22:16:56 +01:00
parent fc9db70d90
commit 1829e2a80b
Signed by: unurled
GPG key ID: FDBC9CBE1F82423F
17 changed files with 84 additions and 65 deletions

View file

@ -70,7 +70,8 @@ public class ClientBuildCommand implements TabExecutor, Listener {
sender.sendMessage("You do not have any temporary blocks to save.");
return;
}
HashMap<Location, BlockData> blocks = clientBuildManager.getTemporaryBlocks(p);
HashMap<Location, BlockData> blocks =
(HashMap<Location, BlockData>) clientBuildManager.getTemporaryBlocks(p);
log("blocks: " + blocks.size());
for (Entry<Location, BlockData> block : blocks.entrySet()) {
build.addBlock(block.getKey(), block.getValue());