mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
17 lines
401 B
Diff
17 lines
401 B
Diff
--- a/net/minecraft/server/DataWatcher.java
|
|
+++ b/net/minecraft/server/DataWatcher.java
|
|
@@ -129,6 +129,13 @@
|
|
|
|
}
|
|
|
|
+ // CraftBukkit start - add method from above
|
|
+ public <T> void markDirty(DataWatcherObject<T> datawatcherobject) {
|
|
+ this.b(datawatcherobject).a(true);
|
|
+ this.g = true;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
public boolean a() {
|
|
return this.g;
|
|
}
|