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

oopsie fixy

This commit is contained in:
FN-FAL113 2023-03-04 18:44:36 +08:00
parent b0ee2e55da
commit e79091825d
No known key found for this signature in database
GPG Key ID: F5294BC4665F0A5A

View File

@ -216,10 +216,10 @@ public class IndustrialMiner extends MultiBlockMachine {
if (version.isAtLeast(MinecraftVersion.MINECRAFT_1_16) && type == Material.ANCIENT_DEBRIS) {
return canMineAncientDebris.getValue() && !BlockStorage.hasBlockInfo(block);
} else if (version.isAtLeast(MinecraftVersion.MINECRAFT_1_17) && SlimefunTag.DEEPSLATE_ORES.isTagged(block.getType())) {
} else if (version.isAtLeast(MinecraftVersion.MINECRAFT_1_17) && SlimefunTag.DEEPSLATE_ORES.isTagged(type)) {
return canMineDeepslateOres.getValue() && !BlockStorage.hasBlockInfo(block);
} else {
return SlimefunTag.INDUSTRIAL_MINER_ORES.isTagged(block.getType()) && !BlockStorage.hasBlockInfo(block);
return SlimefunTag.INDUSTRIAL_MINER_ORES.isTagged(type) && !BlockStorage.hasBlockInfo(block);
}
}