Broadcast prohibitions.
Thanks Sahar.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -36,6 +36,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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDev
					MobiusDev