Paper/paper-server/nms-patches/WorldBorder.patch
CraftBukkit/Spigot 74902a47aa SPIGOT-2936: Simplify WorldBorder diff
By: md_5 <git@md-5.net>
2016-12-19 23:05:39 +11:00

19 lines
486 B
Diff

--- a/net/minecraft/server/WorldBorder.java
+++ b/net/minecraft/server/WorldBorder.java
@@ -18,6 +18,7 @@
private double j;
private int k;
private int l;
+ public WorldServer world; // CraftBukkit
public WorldBorder() {
this.e = this.d;
@@ -177,6 +178,7 @@
}
public void a(IWorldBorderListener iworldborderlistener) {
+ if (a.contains(iworldborderlistener)) return; // CraftBukkit
this.a.add(iworldborderlistener);
}