mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
SMELTERS_PICKAXE: use hasBlockInfo
This commit is contained in:
parent
e00984816f
commit
79e9839c6e
@ -1536,7 +1536,7 @@ public class SlimefunSetup {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onBlockBreak(BlockBreakEvent e, ItemStack item, int fortune, List<ItemStack> drops) {
|
public boolean onBlockBreak(BlockBreakEvent e, ItemStack item, int fortune, List<ItemStack> drops) {
|
||||||
if (SlimefunManager.isItemSimiliar(item, SlimefunItems.AUTO_SMELT_PICKAXE, true)) {
|
if (SlimefunManager.isItemSimiliar(item, SlimefunItems.AUTO_SMELT_PICKAXE, true)) {
|
||||||
if (BlockStorage.check(e.getBlock()) != null) return false;
|
if (BlockStorage.hasBlockInfo(e.getBlock())) return false;
|
||||||
if (e.getBlock().getType().equals(Material.PLAYER_HEAD)) return true;
|
if (e.getBlock().getType().equals(Material.PLAYER_HEAD)) return true;
|
||||||
|
|
||||||
int j = -1;
|
int j = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user