mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-04 17:59:49 +01:00
Fix alternatives and sequence loot entry types
This commit is contained in:
parent
1ca561215c
commit
3d919db633
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user