summaryrefslogtreecommitdiffstats
path: root/nms-patches/WorldBorder.patch
blob: 8577053c5a4bfe56ad09cf6db22bcaee966733c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- 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);
     }