Fix alternatives and sequence loot entry types

This commit is contained in:
jglrxavpok 2020-05-21 18:55:07 +02:00
parent 1ca561215c
commit 3d919db633
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class AlternativesEntry extends LootTable.Entry {
for(LootTable.Entry c : children) {
int previousSize = output.size();
c.generateStacks(output, arguments);
int newSize = previousSize;
int newSize = output.size();
if(newSize != previousSize) { // an entry managed to generate, stop here
return;
}

View File

@ -20,7 +20,7 @@ public class SequenceEntry extends LootTable.Entry {
for(LootTable.Entry c : children) {
int previousSize = output.size();
c.generateStacks(output, arguments);
int newSize = previousSize;
int newSize = output.size();
if(newSize == previousSize) { // an entry failed to generate, stop here
return;
}