From 3d919db633af6c93a6e90e0ded178881cf59ba56 Mon Sep 17 00:00:00 2001 From: jglrxavpok Date: Thu, 21 May 2020 18:55:07 +0200 Subject: [PATCH] Fix alternatives and sequence loot entry types --- .../server/gamedata/loottables/entries/AlternativesEntry.java | 2 +- .../server/gamedata/loottables/entries/SequenceEntry.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/gamedata/loottables/entries/AlternativesEntry.java b/src/main/java/net/minestom/server/gamedata/loottables/entries/AlternativesEntry.java index 59b83c5a7..c6436070d 100644 --- a/src/main/java/net/minestom/server/gamedata/loottables/entries/AlternativesEntry.java +++ b/src/main/java/net/minestom/server/gamedata/loottables/entries/AlternativesEntry.java @@ -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; } diff --git a/src/main/java/net/minestom/server/gamedata/loottables/entries/SequenceEntry.java b/src/main/java/net/minestom/server/gamedata/loottables/entries/SequenceEntry.java index 746a03061..265c37f84 100644 --- a/src/main/java/net/minestom/server/gamedata/loottables/entries/SequenceEntry.java +++ b/src/main/java/net/minestom/server/gamedata/loottables/entries/SequenceEntry.java @@ -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; }