Skip to content

Commit

Permalink
Added empty loot table for penguins by default
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Mar 23, 2018
1 parent ad787e1 commit 806d8d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/com/girafi/waddles/Waddles.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class Waddles {
@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.COMMON_PROXY_ClASS)
public static CommonProxy proxy;

public static final ResourceLocation EMPTY = LootTableList.register(new ResourceLocation(Reference.MOD_ID, "empty"));
public static final ResourceLocation LOOT_ENTITIES_PENGUIN_FISH = LootTableList.register(new ResourceLocation(Reference.MOD_ID, "entities/penguin"));

@Mod.EventHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public ResourceLocation getLootTable() {
if (ConfigurationHandler.dropFish) {
return Waddles.LOOT_ENTITIES_PENGUIN_FISH;
}
return null;
return Waddles.EMPTY;
}

@Override
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/waddles/loot_tables/empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}

0 comments on commit 806d8d5

Please sign in to comment.