1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
TheBusyBiscuit 2020-06-11 09:34:29 +02:00
parent 5c20d3b470
commit 25d970ea94
3 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -59,11 +59,11 @@ public class PickaxeOfVeinMining extends SimpleSlimefunItem<BlockBreakHandler> {
@Override
public boolean onBlockBreak(BlockBreakEvent e, ItemStack item, int fortune, List<ItemStack> drops) {
if (MaterialCollections.getAllOres().contains(e.getBlock().getType()) && isItem(item)) {
if (!Slimefun.hasUnlocked(e.getPlayer(), PickaxeOfVeinMining.this, true)) {
return true;
}
if (MaterialCollections.getAllOres().contains(e.getBlock().getType()) && isItem(item)) {
List<Block> blocks = Vein.find(e.getBlock(), maxBlocks.getValue(), MaterialCollections.getAllOres());
breakBlocks(e.getPlayer(), blocks, fortune);
return true;

View File

@ -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 (MaterialCollections.getAllOres().contains(e.getBlock().getType()) && isItem(item)) {
if (!Slimefun.hasUnlocked(e.getPlayer(), SmeltersPickaxe.this, true)) {
return true;
}
if (MaterialCollections.getAllOres().contains(e.getBlock().getType()) && isItem(item)) {
if (BlockStorage.hasBlockInfo(e.getBlock())) {
return true;
}