Skip to content

Commit

Permalink
Re-enable LootTableEvent code. Hope it works!
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Jun 21, 2023
1 parent ce60ca1 commit 5ae3c67
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static ResourceLocation register(String path) {
return BuiltInLootTables.register(new ResourceLocation(Aquaculture.MOD_ID, path));
}

/*@SubscribeEvent
@SubscribeEvent
public static void onLootTableLoad(LootTableLoadEvent event) {
ResourceLocation name = event.getName();
if (name.equals(BuiltInLootTables.FISHING)) {
Expand All @@ -58,7 +58,7 @@ public static void onLootTableLoad(LootTableLoadEvent event) {
}
}
}
}*/
}

private static LootPoolEntryContainer getInjectEntry(ResourceLocation location, int weight, int quality) {
return LootTableReference.lootTableReference(location).setWeight(weight).setQuality(quality).build();
Expand Down Expand Up @@ -86,4 +86,4 @@ private static void addEntry(LootPool pool, LootPoolEntryContainer entry) {
e.printStackTrace();
}
}
}
}

0 comments on commit 5ae3c67

Please sign in to comment.