1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

SMELTERS_PICKAXE: ignore Slimefun block

This commit is contained in:
HSGamer 2019-08-04 08:44:05 +07:00
parent 5746285881
commit e00984816f

View File

@ -1536,6 +1536,7 @@ public class SlimefunSetup {
@Override
public boolean onBlockBreak(BlockBreakEvent e, ItemStack item, int fortune, List<ItemStack> drops) {
if (SlimefunManager.isItemSimiliar(item, SlimefunItems.AUTO_SMELT_PICKAXE, true)) {
if (BlockStorage.check(e.getBlock()) != null) return false;
if (e.getBlock().getType().equals(Material.PLAYER_HEAD)) return true;
int j = -1;