Mirror von
https://github.com/Moulberry/AxiomPaperPlugin.git
synchronisiert 2024-11-09 01:50:05 +01:00
WorldProperties: Small cleanup
Dieser Commit ist enthalten in:
Ursprung
bf43e7c0b9
Commit
b6afa50b04
@ -42,13 +42,13 @@ public class ServerWorldPropertyHolder<T> {
|
|||||||
|
|
||||||
if (result.isUpdate()) {
|
if (result.isUpdate()) {
|
||||||
this.value = newValue;
|
this.value = newValue;
|
||||||
if (!result.isSync()) {
|
|
||||||
|
if (result.isSync()) {
|
||||||
|
this.sync(world);
|
||||||
|
} else {
|
||||||
this.unsyncedValue = true;
|
this.unsyncedValue = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result.isSync()) {
|
|
||||||
this.sync(world);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValueWithoutSyncing(T value) {
|
public void setValueWithoutSyncing(T value) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren