From 9574a237d0e846acf3c0a4da6a0053bb7cc6699d Mon Sep 17 00:00:00 2001 From: Retro Pronghorn Date: Thu, 30 Apr 2020 22:25:11 +0000 Subject: [PATCH] fix(Roulette Kit): Don't check for entire space of kit free when using the kit roulette option. --- src/main/java/com/songoda/ultimatekits/kit/Kit.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/songoda/ultimatekits/kit/Kit.java b/src/main/java/com/songoda/ultimatekits/kit/Kit.java index d0a2f73..157b449 100644 --- a/src/main/java/com/songoda/ultimatekits/kit/Kit.java +++ b/src/main/java/com/songoda/ultimatekits/kit/Kit.java @@ -90,6 +90,9 @@ public class Kit { } } + // Since roulette only gives one item, we don't need to check if the user has room for the whole kit. + if (kitAnimation == KitAnimation.ROULETTE && space >= 1) + return true; return space >= itemAmount; }