Broadcast prohibitions.

Thanks Sahar.
This commit is contained in:
MobiusDev
2018-05-21 21:34:27 +00:00
parent eed47054fb
commit 29603cb853
25 changed files with 153 additions and 1 deletions

View File

@ -2505,6 +2505,11 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
public void broadcastModifiedStats(Set<Stats> changed)
{
if (!isSpawned())
{
return;
}
if ((changed == null) || changed.isEmpty())
{
return;

View File

@ -34,6 +34,13 @@ public class DropItem implements IClientOutgoingPacket
{
_item = item;
_charObjId = playerObjId;
// Future test.
if ((_item.getX() == 0) && (_item.getY() == 0))
{
LOGGER.warning("DropItem with x=0 and y=0.");
Thread.dumpStack(); // Why? Also check SpawnItem, just in case.
}
}
@Override

View File

@ -39,6 +39,13 @@ public final class SpawnItem implements IClientOutgoingPacket
_y = obj.getY();
_z = obj.getZ();
// Future test.
if ((_x == 0) && (_y == 0))
{
LOGGER.warning("SpawnItem with x=0 and y=0.");
Thread.dumpStack(); // Why? Also check DropItem, just in case.
}
if (obj.isItem())
{
final L2ItemInstance item = (L2ItemInstance) obj;