Fixed deltas not sending if owner was not defined

This commit is contained in:
Obique PSWG
2015-06-09 08:49:31 -05:00
parent 83215d9b09
commit ed624ed919
+2
View File
@@ -776,6 +776,7 @@ public abstract class SWGObject implements Serializable, Comparable<SWGObject> {
}
public final void sendDelta(BaselineType baseline, int type, int update, Object value) {
Player owner = getOwner();
if (owner == null || (owner.getPlayerState() != PlayerState.ZONED_IN))
return;
@@ -784,6 +785,7 @@ public abstract class SWGObject implements Serializable, Comparable<SWGObject> {
}
public final void sendDelta(BaselineType baseline, int type, int update, Object value, StringType strType) {
Player owner = getOwner();
if (owner == null || (owner.getPlayerState() != PlayerState.ZONED_IN))
return;