mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-01 21:24:43 +02:00
Clean up Smelting checks.
Now uses recipes to check if an item is the result of smelting.
This commit is contained in:
@ -75,21 +75,7 @@ public final class BlockUtils {
|
||||
* @return true if the block is an ore, false otherwise
|
||||
*/
|
||||
public static boolean isOre(BlockState blockState) {
|
||||
switch (blockState.getType()) {
|
||||
case COAL_ORE:
|
||||
case DIAMOND_ORE:
|
||||
case GLOWING_REDSTONE_ORE:
|
||||
case GOLD_ORE:
|
||||
case IRON_ORE:
|
||||
case LAPIS_ORE:
|
||||
case QUARTZ_ORE:
|
||||
case REDSTONE_ORE:
|
||||
case EMERALD_ORE:
|
||||
return true;
|
||||
|
||||
default:
|
||||
return ModUtils.isCustomOreBlock(blockState);
|
||||
}
|
||||
return MaterialUtils.isOre(blockState.getData());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user