[F] Also remove block in map when breaking

This commit is contained in:
Hykilpikonna
2020-02-19 21:16:28 -05:00
parent f553078672
commit c2671c38b0
@@ -171,6 +171,9 @@ public class SeedServerCache extends Behavior
// Remove block from list // Remove block from list
if (!cacheBlocks.removeIf(b -> b.equals(pos))) return; if (!cacheBlocks.removeIf(b -> b.equals(pos))) return;
// Remove block from map
blocksMap.remove(pos.toString());
// Remove block from server // Remove block from server
HttpGet get = new HttpGet("http://localhost:12255/api/remove-block"); HttpGet get = new HttpGet("http://localhost:12255/api/remove-block");
get.setHeader("world", "world"); get.setHeader("world", "world");