[O] Only remove block from the server if it is a targeted block
This commit is contained in:
@@ -162,7 +162,7 @@ public class SeedServerCache extends Behavior
|
|||||||
public void onBlockBreak(BlockPos pos)
|
public void onBlockBreak(BlockPos pos)
|
||||||
{
|
{
|
||||||
// Remove block from list
|
// Remove block from list
|
||||||
cacheBlocks.removeIf(b -> b.equals(pos));
|
if (!cacheBlocks.removeIf(b -> b.equals(pos))) return;
|
||||||
|
|
||||||
// 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");
|
||||||
|
|||||||
Reference in New Issue
Block a user