Def cleanup (#585)
* Object definition cleanup * Update ShopAssistant.java * stackables * notables * unused files * more junk * almost done * working * moving old methods to deprecated * update * fixed pickpocket typos * Update Pickpocket.java * Remove redundant method. Fix stall stealing * Documentation for deprecated methods * WIP commit partial removal. Has test and dump classes * Final cleanup * Move definitions from data folder to cfg * Temporarily moving definition loaders to GameEngine This is until loading can be done asynchronously. * Correct indentation.
This commit is contained in:
1 parent
b2212d357e
commit
eab153ee3f
98 files changed
+21771
-285672
No files matched your search
@@ -11,6 +11,8 @@ import com.rs2.game.players.PlayerHandler;
|
||||
import com.rs2.util.GlobalDropData;
|
||||
import com.rs2.util.Misc;
|
||||
import com.rs2.util.ShopData;
|
||||
|
||||
import org.apollo.cache.def.ItemDefinition;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
|
||||
@@ -172,7 +174,7 @@ public class GlobalDropsHandler {
|
||||
return;
|
||||
}
|
||||
if (player.getItemAssistant().freeSlots() < 1) {
|
||||
if (!(player.getItemAssistant().playerHasItem(player.pItemId) && player.getItemAssistant().isStackable(player.pItemId))) {
|
||||
if (!(player.getItemAssistant().playerHasItem(player.pItemId) && ItemDefinition.lookup(player.pItemId).isStackable())) {
|
||||
player.getPacketSender().sendMessage("Not enough space in your inventory.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user