Water and Swamp zones should not broadcast info on teleport.
Contributed by Sahar.
This commit is contained in:
@ -64,7 +64,7 @@ public class SwampZone extends ZoneType
|
||||
protected void onExit(Creature creature)
|
||||
{
|
||||
creature.setInsideZone(ZoneId.SWAMP, false);
|
||||
if (creature instanceof PlayerInstance)
|
||||
if (!creature.isTeleporting() && (creature instanceof PlayerInstance))
|
||||
{
|
||||
((PlayerInstance) creature).broadcastUserInfo();
|
||||
}
|
||||
|
@ -64,7 +64,10 @@ public class WaterZone extends ZoneType
|
||||
{
|
||||
((PlayerInstance) creature).stopWaterTask();
|
||||
}
|
||||
((PlayerInstance) creature).broadcastUserInfo();
|
||||
if (!creature.isTeleporting())
|
||||
{
|
||||
((PlayerInstance) creature).broadcastUserInfo();
|
||||
}
|
||||
}
|
||||
else if (creature instanceof NpcInstance)
|
||||
{
|
||||
|
Reference in New Issue
Block a user