mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 18:32:28 +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) {
|
for(LootTable.Entry c : children) {
|
||||||
int previousSize = output.size();
|
int previousSize = output.size();
|
||||||
c.generateStacks(output, arguments);
|
c.generateStacks(output, arguments);
|
||||||
int newSize = previousSize;
|
int newSize = output.size();
|
||||||
if(newSize != previousSize) { // an entry managed to generate, stop here
|
if(newSize != previousSize) { // an entry managed to generate, stop here
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ public class SequenceEntry extends LootTable.Entry {
|
|||||||
for(LootTable.Entry c : children) {
|
for(LootTable.Entry c : children) {
|
||||||
int previousSize = output.size();
|
int previousSize = output.size();
|
||||||
c.generateStacks(output, arguments);
|
c.generateStacks(output, arguments);
|
||||||
int newSize = previousSize;
|
int newSize = output.size();
|
||||||
if(newSize == previousSize) { // an entry failed to generate, stop here
|
if(newSize == previousSize) { // an entry failed to generate, stop here
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user