mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 08:39:07 +00:00
Fixup free space check
This commit is contained in:
@@ -75,7 +75,7 @@ public class Bot {
|
|||||||
// Add some color and effects
|
// Add some color and effects
|
||||||
botClient.setChatTextColor(9);
|
botClient.setChatTextColor(9);
|
||||||
botClient.setChatTextEffects(2);
|
botClient.setChatTextEffects(2);
|
||||||
|
|
||||||
String message = "Selling " + item_name + " " + formatSellPrice(value) + " ea - " + botClient.playerName;
|
String message = "Selling " + item_name + " " + formatSellPrice(value) + " ea - " + botClient.playerName;
|
||||||
// Need to figure out how to calculate this
|
// Need to figure out how to calculate this
|
||||||
botClient.setChatTextSize((byte) 29);
|
botClient.setChatTextSize((byte) 29);
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ public class BotHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void takeCoins(Client player){
|
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.");
|
player.getActionSender().sendMessage("You don't have enough space in your inventory.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user