commit 1689c75ebcd32314e65e093b33362241761f6c76
parent 73bb9047c45a5ef4952105154588b0d49fa1620c
Author: chunksize <reisingerluca@gmail.com>
Date: Fri, 6 Sep 2024 03:39:46 +0200
fix: Fixed console error caused by AutoPlacerModule
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/poppy/modules/AutoPlacerModule.java b/src/poppy/modules/AutoPlacerModule.java
@@ -86,7 +86,7 @@ public class AutoPlacerModule implements Listener
public void removeSnapshotItem(Dispenser dispenser, Material material, int amount)
{
Bukkit.getScheduler().runTaskLater(plugin, () -> {
- dispenser.getSnapshotInventory().addItem(new ItemStack(material, -amount));
+ dispenser.getSnapshotInventory().removeItem(new ItemStack(material, 1));
dispenser.update();
}, 1);
}