Skip to content

Commit

Permalink
Commit #39
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackJar72 committed Feb 19, 2015
1 parent a28a662 commit 295f97e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/jaredbgreat/dldungeons/pieces/chests/LootList.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public void add(Block item, int min, int max, int prob) {
public LootItem getLoot(Random random) {
LootItem out;
if(isEmpty()) return null;
// Done with removal now to somewhat increase randomness
if(dummy.isEmpty() || random.nextInt(size()) > dummy.size()) {
dummy.clear();
dummy.addAll(this);
Expand Down

0 comments on commit 295f97e

Please sign in to comment.