Skip to content

Commit

Permalink
Fixed tag test package still using v1
Browse files Browse the repository at this point in the history
  • Loading branch information
TelepathicGrunt committed Sep 14, 2023
1 parent 2b7e73d commit 685e960
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package net.fabricmc.fabric.test.tag.convention.v1;
package net.fabricmc.fabric.test.tag.convention.v2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -47,11 +47,11 @@ public void onInitialize() {

// If this fails, the tag is missing a biome or the util is broken
if (!TagUtil.isIn(server.getRegistryManager(), ConventionalBiomeTags.IS_OVERWORLD, server.getRegistryManager().get(RegistryKeys.BIOME).get(BiomeKeys.BADLANDS))) {
throw new AssertionError("Failed to find an overworld biome (%s) in c:in_overworld!".formatted(BiomeKeys.BADLANDS));
throw new AssertionError("Failed to find an overworld biome (%s) in common:in_overworld!".formatted(BiomeKeys.BADLANDS));
}

if (!TagUtil.isIn(server.getRegistryManager(), ConventionalBlockTags.ORES, Blocks.DIAMOND_ORE)) {
throw new AssertionError("Failed to find diamond ore in c:ores!");
throw new AssertionError("Failed to find diamond ore in common:ores!");
}

//Success!
Expand Down

0 comments on commit 685e960

Please sign in to comment.