Fixup free space check
This commit is contained in:
1 parent
05a3a912f6
commit
bda929229e
5 files changed
+2
-2
No files matched your search
@@ -139,7 +139,7 @@ public class BotHandler
|
||||
}
|
||||
|
||||
public static void takeCoins(Client player){
|
||||
if (!player.getItemAssistant().playerHasItem(currency) || player.getItemAssistant().freeSlots() <= 0) {
|
||||
if (!player.getItemAssistant().playerHasItem(currency) && player.getItemAssistant().freeSlots() <= 0) {
|
||||
player.getActionSender().sendMessage("You don't have enough space in your inventory.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user