PaperMC/nms-patches/DataWatcher.patch

17 lines
401 B
Diff
Raw Normal View History

2016-02-29 22:32:46 +01:00
--- a/net/minecraft/server/DataWatcher.java
+++ b/net/minecraft/server/DataWatcher.java
2019-04-23 04:00:00 +02:00
@@ -129,6 +129,13 @@
2018-07-15 02:00:00 +02:00
}
+ // 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;
}