mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
fix #3836
This commit is contained in:
parent
baef038179
commit
0137abadf1
@ -6,6 +6,7 @@ import java.util.List;
|
|||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import javax.annotation.ParametersAreNonnullByDefault;
|
import javax.annotation.ParametersAreNonnullByDefault;
|
||||||
|
|
||||||
|
import dev.lone.itemsadder.api.CustomBlock;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Effect;
|
import org.bukkit.Effect;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@ -172,6 +173,9 @@ public class ExplosiveTool extends SimpleSlimefunItem<ToolUseHandler> implements
|
|||||||
b.setType(Material.AIR);
|
b.setType(Material.AIR);
|
||||||
BlockStorage.clearBlockInfo(b);
|
BlockStorage.clearBlockInfo(b);
|
||||||
}
|
}
|
||||||
|
// Fixes #3836
|
||||||
|
} else if (CustomBlock.byAlreadyPlaced(b) != null) {
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
b.breakNaturally(item);
|
b.breakNaturally(item);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user