修复客户端owner读取问题
This commit is contained in:
parent
8efe96de2c
commit
5a593b0634
6 changed files with 30 additions and 12 deletions
|
@ -125,9 +125,12 @@ public class Blu43Entity extends Entity implements GeoEntity, OwnableEntity {
|
|||
} else {
|
||||
String s = compound.getString("Owner");
|
||||
|
||||
assert this.getServer() != null;
|
||||
if (this.getServer() == null) {
|
||||
uuid = UUID.fromString(s);
|
||||
} else {
|
||||
uuid = OldUsersConverter.convertMobOwnerIfNecessary(this.getServer(), s);
|
||||
}
|
||||
}
|
||||
|
||||
if (uuid != null) {
|
||||
try {
|
||||
|
|
|
@ -130,9 +130,12 @@ public class ClaymoreEntity extends Entity implements GeoEntity, OwnableEntity {
|
|||
} else {
|
||||
String s = compound.getString("Owner");
|
||||
|
||||
assert this.getServer() != null;
|
||||
if (this.getServer() == null) {
|
||||
uuid = UUID.fromString(s);
|
||||
} else {
|
||||
uuid = OldUsersConverter.convertMobOwnerIfNecessary(this.getServer(), s);
|
||||
}
|
||||
}
|
||||
|
||||
if (uuid != null) {
|
||||
try {
|
||||
|
|
|
@ -134,9 +134,12 @@ public class Tm62Entity extends Entity implements GeoEntity, OwnableEntity {
|
|||
} else {
|
||||
String s = compound.getString("Owner");
|
||||
|
||||
assert this.getServer() != null;
|
||||
if (this.getServer() == null) {
|
||||
uuid = UUID.fromString(s);
|
||||
} else {
|
||||
uuid = OldUsersConverter.convertMobOwnerIfNecessary(this.getServer(), s);
|
||||
}
|
||||
}
|
||||
|
||||
if (uuid != null) {
|
||||
try {
|
||||
|
|
|
@ -144,9 +144,12 @@ public class C4Entity extends Entity implements GeoEntity, OwnableEntity {
|
|||
} else {
|
||||
String s = compound.getString("Owner");
|
||||
|
||||
assert this.getServer() != null;
|
||||
if (this.getServer() == null) {
|
||||
uuid = UUID.fromString(s);
|
||||
} else {
|
||||
uuid = OldUsersConverter.convertMobOwnerIfNecessary(this.getServer(), s);
|
||||
}
|
||||
}
|
||||
|
||||
if (uuid != null) {
|
||||
try {
|
||||
|
|
|
@ -131,9 +131,12 @@ public class Hpj11Entity extends ContainerMobileVehicleEntity implements GeoEnti
|
|||
} else {
|
||||
String s = compound.getString("Owner");
|
||||
|
||||
assert this.getServer() != null;
|
||||
if (this.getServer() == null) {
|
||||
uuid = UUID.fromString(s);
|
||||
} else {
|
||||
uuid = OldUsersConverter.convertMobOwnerIfNecessary(this.getServer(), s);
|
||||
}
|
||||
}
|
||||
|
||||
if (uuid != null) {
|
||||
try {
|
||||
|
|
|
@ -110,9 +110,12 @@ public class LaserTowerEntity extends VehicleEntity implements GeoEntity, Ownabl
|
|||
} else {
|
||||
String s = compound.getString("Owner");
|
||||
|
||||
assert this.getServer() != null;
|
||||
if (this.getServer() == null) {
|
||||
uuid = UUID.fromString(s);
|
||||
} else {
|
||||
uuid = OldUsersConverter.convertMobOwnerIfNecessary(this.getServer(), s);
|
||||
}
|
||||
}
|
||||
|
||||
if (uuid != null) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue