mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Fixed HCIM abuse.
This commit is contained in:
parent
71fb54fa5a
commit
05fafa2c32
1 changed files with 6 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ package core.game.content.global.action;
|
|||
import core.game.node.Node;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.entity.player.info.login.PlayerParser;
|
||||
import core.game.node.entity.player.link.IronmanMode;
|
||||
import core.game.node.entity.player.link.audio.Audio;
|
||||
import core.game.node.item.GroundItem;
|
||||
import core.game.node.item.GroundItemManager;
|
||||
import core.game.node.item.Item;
|
||||
import rs09.game.system.SystemLogger;
|
||||
|
|
@ -49,7 +51,10 @@ public final class DropItemHandler {
|
|||
if (player.getInventory().replace(null, item.getSlot()) == item) {
|
||||
item = item.getDropItem();
|
||||
player.getAudioManager().send(new Audio(item.getId() == 995 ? 10 : 2739, 1, 0));//2739 ACTUAL DROP SOUND
|
||||
GroundItemManager.create(item, player.getLocation(), player);
|
||||
GroundItem i = GroundItemManager.create(item, player.getLocation(), player);
|
||||
if (player.getIronmanManager().getMode() == IronmanMode.HARDCORE) {
|
||||
i.setRemainPrivate(true);
|
||||
}
|
||||
PlayerParser.save(player);
|
||||
}
|
||||
player.setAttribute("droppedItem:" + item.getId(), GameWorld.getTicks() + 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue