1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Industrial Miners can now also mine Gilded Blackstone

This commit is contained in:
TheBusyBiscuit 2020-08-08 12:51:26 +02:00
parent 9f49dd3981
commit 7de9dd6683
2 changed files with 10 additions and 7 deletions

View File

@ -31,6 +31,7 @@
* (API) Added ToolUseHandler
* Added "Sand -> Sandstone" recipe to the Electric Press
* Added "Red Sand -> Red Sandstone" recipe to the Electric Press
* Industrial Miners can now also mine Gilded Blackstone
#### Changes
* Performance improvement for Programmable Android rotations

View File

@ -131,10 +131,8 @@ public class IndustrialMiner extends MultiBlockMachine {
return new ItemStack(Material.REDSTONE, 4 + random.nextInt(2));
case LAPIS_ORE:
return new ItemStack(Material.LAPIS_LAZULI, 4 + random.nextInt(4));
case ANCIENT_DEBRIS:
return new ItemStack(Material.ANCIENT_DEBRIS);
default:
// This includes Iron and Gold ore
// This includes Iron and Gold ore (and Ancient Debris)
return new ItemStack(ore);
}
}
@ -216,11 +214,15 @@ public class IndustrialMiner extends MultiBlockMachine {
return true;
}
else if (SlimefunPlugin.getMinecraftVersion().isAtLeast(MinecraftVersion.MINECRAFT_1_16)) {
return type == Material.ANCIENT_DEBRIS && canMineAncientDebris.getValue();
}
else {
return false;
if (type == Material.GILDED_BLACKSTONE) {
return true;
}
else if (type == Material.ANCIENT_DEBRIS) {
return canMineAncientDebris.getValue();
}
}
return false;
}
}