From 5673317bb5401a631db4c960b103e9e71339761e Mon Sep 17 00:00:00 2001 From: Noaaan Date: Sat, 24 Aug 2024 20:50:42 +0200 Subject: [PATCH] Fix tag-related issues - Fixes mining levels breaking - Fixes an error related to the `incorrect_For_unobtainium_alloy_tools` tag --- src/main/java/nourl/mythicmetals/blocks/MythicBlocks.java | 2 +- .../tags/block/incorrect_for_unobtainium_alloy_tools.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/nourl/mythicmetals/blocks/MythicBlocks.java b/src/main/java/nourl/mythicmetals/blocks/MythicBlocks.java index 6c91bdff..b4fcc191 100644 --- a/src/main/java/nourl/mythicmetals/blocks/MythicBlocks.java +++ b/src/main/java/nourl/mythicmetals/blocks/MythicBlocks.java @@ -22,7 +22,7 @@ public class MythicBlocks { private static final Identifier STONE_MINING_LEVEL = BlockTags.NEEDS_STONE_TOOL.id(); private static final Identifier IRON_MINING_LEVEL = BlockTags.NEEDS_IRON_TOOL.id(); private static final Identifier DIAMOND_MINING_LEVEL = BlockTags.NEEDS_DIAMOND_TOOL.id(); - private static final Identifier NETHERITE_MINING_LEVEL = RegistryHelper.id("needs_netherite_tool"); + private static final Identifier NETHERITE_MINING_LEVEL = Identifier.of("needs_netherite_tool"); private static final Identifier MYTHIC_MINING_LEVEL = RegistryHelper.id("needs_unobtainable_tool"); public static final BlockSet ADAMANTITE = BlockSet.Builder.begin("adamantite", false) diff --git a/src/main/resources/data/mythicmetals/tags/block/incorrect_for_unobtainium_alloy_tools.json b/src/main/resources/data/mythicmetals/tags/block/incorrect_for_unobtainium_alloy_tools.json index a7730188..5e8aecc9 100644 --- a/src/main/resources/data/mythicmetals/tags/block/incorrect_for_unobtainium_alloy_tools.json +++ b/src/main/resources/data/mythicmetals/tags/block/incorrect_for_unobtainium_alloy_tools.json @@ -1,4 +1,4 @@ { - "_comment": "metallurgium and celestium will not be able to mine blocks in this tag", - "replace": false + "replace": false, + "values": [] } \ No newline at end of file