[O] Only remove block from the server if it is a targeted block

This commit is contained in:
Hykilpikonna
2020-02-19 21:14:25 -05:00
parent 71c0e5c36f
commit 78ba6a7aae
@@ -162,7 +162,7 @@ public class SeedServerCache extends Behavior
public void onBlockBreak(BlockPos pos)
{
// Remove block from list
cacheBlocks.removeIf(b -> b.equals(pos));
if (!cacheBlocks.removeIf(b -> b.equals(pos))) return;
// Remove block from server
HttpGet get = new HttpGet("http://localhost:12255/api/remove-block");