Skip to content

Commit

Permalink
Removed custom item from default lootTable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandw11 committed Jun 27, 2020
1 parent fe29cc1 commit 381c7a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/com/ryandw11/structure/loottables/LootItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public LootItem(String customName, String type, int amount, int weight, Map<Stri
*/
public LootItem(ItemStack itemStack, int amount, int weight){
this.weight = weight;
this.item = itemStack;
this.item = itemStack.clone();
this.item.setAmount(amount);
}

Expand Down
5 changes: 0 additions & 5 deletions src/lootTables/lootTable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,3 @@ Items:
Type: 'ROTTEN_FLESH'
Amount: 5
Weight: 20
item3:
Type: 'CUSTOM'
Key: 'test'
Amount: 5
Weight: 20

0 comments on commit 381c7a1

Please sign in to comment.