From f52b8fa2de7a568da98597bb111f7c9225557007 Mon Sep 17 00:00:00 2001 From: SquidDev Date: Wed, 29 Apr 2020 16:23:18 +0100 Subject: [PATCH] Bump mappings version --- gradle.properties | 2 +- .../java/dan200/computercraft/data/LootTableProvider.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index a4a22ade3..4089f1259 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,4 +4,4 @@ mod_version=1.87.1 # Minecraft properties (update mods.toml when changing) mc_version=1.15.2 forge_version=31.1.41 -mappings_version=20200410-1.15.1 +mappings_version=20200429-1.15.1 diff --git a/src/main/java/dan200/computercraft/data/LootTableProvider.java b/src/main/java/dan200/computercraft/data/LootTableProvider.java index c0f0c44e0..e24d07206 100644 --- a/src/main/java/dan200/computercraft/data/LootTableProvider.java +++ b/src/main/java/dan200/computercraft/data/LootTableProvider.java @@ -47,13 +47,13 @@ public abstract class LootTableProvider implements IDataProvider ValidationTracker validation = new ValidationTracker( LootParameterSets.GENERIC, x -> null, tables::get ); registerLoot( ( id, table ) -> { - if( tables.containsKey( id ) ) validation.func_227530_a_( "Duplicate loot tables for " + id ); + if( tables.containsKey( id ) ) validation.addProblem( "Duplicate loot tables for " + id ); tables.put( id, table ); } ); tables.forEach( ( key, value ) -> LootTableManager.func_227508_a_( validation, key, value ) ); - Multimap problems = validation.func_227527_a_(); + Multimap problems = validation.getProblems(); if( !problems.isEmpty() ) { problems.forEach( ( child, problem ) ->