Fix PrototypeLoader and RegionLoader with version tag
Dieser Commit ist enthalten in:
Ursprung
0164a2bff6
Commit
758f9cd594
@ -44,7 +44,7 @@ public class PrototypeLoader {
|
|||||||
throw new SecurityException(e.getMessage(), e);
|
throw new SecurityException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
||||||
int currentVersion = yapionObject.getPlainValue("@version");
|
int currentVersion = yapionObject.getPlainValueOrDefault("@version", -1);
|
||||||
if (currentVersion != loadedVersion && loadedVersion != 0) {
|
if (currentVersion != loadedVersion && loadedVersion != 0) {
|
||||||
throw new SecurityException("Version was not the specified version needed.");
|
throw new SecurityException("Version was not the specified version needed.");
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ public class RegionLoader {
|
|||||||
throw new SecurityException(e.getMessage(), e);
|
throw new SecurityException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
||||||
int currentVersion = yapionObject.getPlainValue("@version");
|
int currentVersion = yapionObject.getPlainValueOrDefault("@version", -1);
|
||||||
if (currentVersion != loadedVersion && loadedVersion != 0) {
|
if (currentVersion != loadedVersion && loadedVersion != 0) {
|
||||||
throw new SecurityException("Version was not the specified version needed.");
|
throw new SecurityException("Version was not the specified version needed.");
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren