mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Implemented functionality where user can search for traps in some chests (#534)
* Initial commit * Implemented cooldown timer and added ardougne castle chest * Refactoring * Removing unused variable
This commit is contained in:
@@ -93,6 +93,9 @@ public class ItemAssistant {
|
||||
} else if (!hasFreeSlots(amount) && !isStackable(item)) {
|
||||
GameEngine.itemHandler.createGroundItem(player, item, player.getX(), player.getY(), amount, player.playerId);
|
||||
player.getPacketSender().sendMessage("You have no inventory space, so the item(s) appear beneath you.");
|
||||
} else if (isStackable(item) && !hasFreeSlots(1) && !playerHasItem(item)) {
|
||||
GameEngine.itemHandler.createGroundItem(player, item, player.getX(), player.getY(), amount, player.playerId);
|
||||
player.getPacketSender().sendMessage("You have no inventory space, so the item(s) appear beneath you.");
|
||||
} else {
|
||||
addItem(item, amount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user