Use doubles in config.yml where appropriate. Change item IDs to item names

in light of upcoming Minecraft changes that will remove access to item
IDs.
This commit is contained in:
GJ
2013-09-13 09:12:21 -04:00
parent 800a452d62
commit 4eba33a1c6
12 changed files with 92 additions and 90 deletions

View File

@ -318,9 +318,9 @@ public final class BlockUtils {
* @return true if the block is an mcMMO anvil, false otherwise
*/
public static boolean isMcMMOAnvil(BlockState blockState) {
int blockId = blockState.getTypeId();
Material type = blockState.getType();
return blockId == Repair.repairAnvilId || blockId == Repair.salvageAnvilId;
return type == Repair.repairAnvilMaterial || type == Repair.salvageAnvilMaterial;
}
/**