Prevent broadcastModifiedStats iterating changed stat when info is null.
This commit is contained in:
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2687,9 +2687,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2687,9 +2687,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2687,9 +2687,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2686,9 +2686,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2690,9 +2690,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2697,9 +2697,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -2697,9 +2697,9 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
info = new UserInfo(getActingPlayer(), false);
|
info = new UserInfo(getActingPlayer(), false);
|
||||||
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
info.addComponentType(UserInfoType.SLOTS, UserInfoType.ENCHANTLEVEL);
|
||||||
}
|
}
|
||||||
for (Stat stat : changed)
|
|
||||||
{
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
{
|
||||||
|
for (Stat stat : changed)
|
||||||
{
|
{
|
||||||
switch (stat)
|
switch (stat)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user