Skip to content

Commit

Permalink
Fixed crash/freeze on loading world
Browse files Browse the repository at this point in the history
  • Loading branch information
Majrusz committed Nov 22, 2021
1 parent 6088f52 commit 514153b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@Mod.EventBusSubscriber
public class LootProgress {
public static ObfuscationGetter< LootTable, List< LootPool > > POOLS_GETTER = new ObfuscationGetter<>( LootTable.class, "pools", "f_79109_" );
public static ObfuscationGetter< LootPool, List< LootPoolEntryContainer > > ENTRIES_GETTER = new ObfuscationGetter<>( LootPool.class, "entries",
public static ObfuscationGetter< LootPool, LootPoolEntryContainer[] > ENTRIES_GETTER = new ObfuscationGetter<>( LootPool.class, "entries",
"f_79023_"
);

Expand Down Expand Up @@ -100,7 +100,7 @@ protected static void createDefaultProgressIfPossible( Player player, TreasureBa

LootContext context = TreasureBagItem.generateLootContext( player );
for( LootPool lootPool : pools ) {
List< LootPoolEntryContainer > entries = ENTRIES_GETTER.get( lootPool );
LootPoolEntryContainer[] entries = ENTRIES_GETTER.get( lootPool );
if( entries == null )
return;

Expand Down

0 comments on commit 514153b

Please sign in to comment.