mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #1971
This commit is contained in:
parent
5c20d3b470
commit
25d970ea94
@ -46,6 +46,7 @@
|
||||
* Fixed #1942
|
||||
* Fixed #1943
|
||||
* Fixed Nuclear Reactors accepting Lava as coolant
|
||||
* Fixed #1971
|
||||
|
||||
## Release Candidate 12 (27 May 2020)
|
||||
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#12
|
||||
|
@ -59,11 +59,11 @@ public class PickaxeOfVeinMining extends SimpleSlimefunItem<BlockBreakHandler> {
|
||||
|
||||
@Override
|
||||
public boolean onBlockBreak(BlockBreakEvent e, ItemStack item, int fortune, List<ItemStack> drops) {
|
||||
if (!Slimefun.hasUnlocked(e.getPlayer(), PickaxeOfVeinMining.this, true)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (MaterialCollections.getAllOres().contains(e.getBlock().getType()) && isItem(item)) {
|
||||
if (!Slimefun.hasUnlocked(e.getPlayer(), PickaxeOfVeinMining.this, true)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
List<Block> blocks = Vein.find(e.getBlock(), maxBlocks.getValue(), MaterialCollections.getAllOres());
|
||||
breakBlocks(e.getPlayer(), blocks, fortune);
|
||||
return true;
|
||||
|
@ -38,11 +38,11 @@ public class SmeltersPickaxe extends SimpleSlimefunItem<BlockBreakHandler> imple
|
||||
|
||||
@Override
|
||||
public boolean onBlockBreak(BlockBreakEvent e, ItemStack item, int fortune, List<ItemStack> drops) {
|
||||
if (!Slimefun.hasUnlocked(e.getPlayer(), SmeltersPickaxe.this, true)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (MaterialCollections.getAllOres().contains(e.getBlock().getType()) && isItem(item)) {
|
||||
if (!Slimefun.hasUnlocked(e.getPlayer(), SmeltersPickaxe.this, true)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (BlockStorage.hasBlockInfo(e.getBlock())) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user