From bf401fbbde1f434c87f87313f2b7ad16b4b4eb44 Mon Sep 17 00:00:00 2001
From: Thinkofdeath <thinkofdeath@spigotmc.org>
Date: Sat, 29 Nov 2014 21:09:04 +0000
Subject: [PATCH] Remove old debug info

---
 nms-patches/World.patch | 65 ++++++++++++++++++++---------------------
 1 file changed, 32 insertions(+), 33 deletions(-)

diff --git a/nms-patches/World.patch b/nms-patches/World.patch
index 133110d640..52a949d4db 100644
--- a/nms-patches/World.patch
+++ b/nms-patches/World.patch
@@ -1,5 +1,5 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/World.java	Sat Nov 29 18:03:51 2014
-+++ src/main/java/net/minecraft/server/World.java	Sat Nov 29 17:58:45 2014
+--- ../work/decompile-8eb82bde//net/minecraft/server/World.java	2014-11-29 21:08:51.989028346 +0000
++++ src/main/java/net/minecraft/server/World.java	2014-11-29 21:07:57.617029552 +0000
 @@ -13,6 +13,22 @@
  import java.util.UUID;
  import java.util.concurrent.Callable;
@@ -124,7 +124,7 @@
          if (!this.isValidLocation(blockposition)) {
              return false;
          } else if (!this.isStatic && this.worldData.getType() == WorldType.DEBUG_ALL_BLOCK_STATES) {
-@@ -191,9 +276,24 @@
+@@ -191,9 +276,23 @@
          } else {
              Chunk chunk = this.getChunkAtWorldCoords(blockposition);
              Block block = iblockdata.getBlock();
@@ -133,7 +133,6 @@
 +            BlockState blockstate = null;
 +            if (this.captureBlockStates) {
 +                blockstate = org.bukkit.craftbukkit.block.CraftBlockState.getBlockState(this, blockposition.getX(), blockposition.getY(), blockposition.getZ(), i);
-+                System.out.println(blockposition + " - " + i);
 +                this.capturedBlockStates.add(blockstate);
 +            }
 +            // CraftBukkit end
@@ -149,7 +148,7 @@
                  return false;
              } else {
                  Block block1 = iblockdata1.getBlock();
-@@ -204,6 +304,7 @@
+@@ -204,6 +303,7 @@
                      this.methodProfiler.b();
                  }
  
@@ -157,7 +156,7 @@
                  if ((i & 2) != 0 && (!this.isStatic || (i & 4) == 0) && chunk.isReady()) {
                      this.notify(blockposition);
                  }
-@@ -214,12 +315,35 @@
+@@ -214,12 +314,35 @@
                          this.updateAdjacentComparators(blockposition, block);
                      }
                  }
@@ -193,7 +192,7 @@
      public boolean setAir(BlockPosition blockposition) {
          return this.setTypeAndData(blockposition, Blocks.AIR.getBlockData(), 3);
      }
-@@ -253,6 +377,11 @@
+@@ -253,6 +376,11 @@
  
      public void update(BlockPosition blockposition, Block block) {
          if (this.worldData.getType() != WorldType.DEBUG_ALL_BLOCK_STATES) {
@@ -205,7 +204,7 @@
              this.applyPhysics(blockposition, block);
          }
  
-@@ -328,6 +457,17 @@
+@@ -328,6 +456,17 @@
              IBlockData iblockdata = this.getType(blockposition);
  
              try {
@@ -223,7 +222,7 @@
                  iblockdata.getBlock().doPhysics(this, blockposition, iblockdata, block);
              } catch (Throwable throwable) {
                  CrashReport crashreport = CrashReport.a(throwable, "Exception while updating neighbours");
-@@ -497,6 +637,17 @@
+@@ -497,6 +636,17 @@
      }
  
      public IBlockData getType(BlockPosition blockposition) {
@@ -241,7 +240,7 @@
          if (!this.isValidLocation(blockposition)) {
              return Blocks.AIR.getBlockData();
          } else {
-@@ -704,6 +855,13 @@
+@@ -704,6 +854,13 @@
      }
  
      public boolean addEntity(Entity entity) {
@@ -255,7 +254,7 @@
          int i = MathHelper.floor(entity.locX / 16.0D);
          int j = MathHelper.floor(entity.locZ / 16.0D);
          boolean flag = entity.attachedToPlayer;
-@@ -712,7 +870,35 @@
+@@ -712,7 +869,35 @@
              flag = true;
          }
  
@@ -291,7 +290,7 @@
              return false;
          } else {
              if (entity instanceof EntityHuman) {
-@@ -734,6 +920,7 @@
+@@ -734,6 +919,7 @@
              ((IWorldAccess) this.u.get(i)).a(entity);
          }
  
@@ -299,7 +298,7 @@
      }
  
      protected void b(Entity entity) {
-@@ -741,6 +928,7 @@
+@@ -741,6 +927,7 @@
              ((IWorldAccess) this.u.get(i)).b(entity);
          }
  
@@ -307,7 +306,7 @@
      }
  
      public void kill(Entity entity) {
-@@ -775,7 +963,15 @@
+@@ -775,7 +962,15 @@
              this.getChunkAt(i, j).b(entity);
          }
  
@@ -324,7 +323,7 @@
          this.b(entity);
      }
  
-@@ -958,6 +1154,11 @@
+@@ -958,6 +1153,11 @@
  
          for (i = 0; i < this.k.size(); ++i) {
              entity = (Entity) this.k.get(i);
@@ -336,7 +335,7 @@
  
              try {
                  ++entity.ticksLived;
-@@ -1001,8 +1202,10 @@
+@@ -1001,8 +1201,10 @@
          this.g.clear();
          this.methodProfiler.c("regular");
  
@@ -349,7 +348,7 @@
              if (entity.vehicle != null) {
                  if (!entity.vehicle.dead && entity.vehicle.passenger == entity) {
                      continue;
-@@ -1033,7 +1236,7 @@
+@@ -1033,7 +1235,7 @@
                      this.getChunkAt(j, k).b(entity);
                  }
  
@@ -358,7 +357,7 @@
                  this.b(entity);
              }
  
-@@ -1042,6 +1245,14 @@
+@@ -1042,6 +1244,14 @@
  
          this.methodProfiler.c("blockEntities");
          this.L = true;
@@ -373,7 +372,7 @@
          Iterator iterator = this.tileEntityList.iterator();
  
          while (iterator.hasNext()) {
-@@ -1073,11 +1284,13 @@
+@@ -1073,11 +1283,13 @@
          }
  
          this.L = false;
@@ -387,7 +386,7 @@
  
          this.methodProfiler.c("pendingBlockEntities");
          if (!this.a.isEmpty()) {
-@@ -1085,9 +1298,11 @@
+@@ -1085,9 +1297,11 @@
                  TileEntity tileentity1 = (TileEntity) this.a.get(l);
  
                  if (!tileentity1.x()) {
@@ -399,7 +398,7 @@
  
                      if (this.isLoaded(tileentity1.getPosition())) {
                          this.getChunkAtWorldCoords(tileentity1.getPosition()).a(tileentity1.getPosition(), tileentity1);
-@@ -1141,7 +1356,10 @@
+@@ -1141,7 +1355,10 @@
          int j = MathHelper.floor(entity.locZ);
          byte b0 = 32;
  
@@ -411,7 +410,7 @@
              entity.P = entity.locX;
              entity.Q = entity.locY;
              entity.R = entity.locZ;
-@@ -1615,7 +1833,13 @@
+@@ -1615,7 +1832,13 @@
                      --j;
                      this.worldData.setThunderDuration(j);
                      if (j <= 0) {
@@ -426,7 +425,7 @@
                      }
                  }
  
-@@ -1639,7 +1863,14 @@
+@@ -1639,7 +1862,14 @@
                      --k;
                      this.worldData.setWeatherDuration(k);
                      if (k <= 0) {
@@ -442,7 +441,7 @@
                      }
                  }
  
-@@ -1656,7 +1887,7 @@
+@@ -1656,7 +1886,7 @@
      }
  
      protected void D() {
@@ -451,7 +450,7 @@
          this.methodProfiler.a("buildList");
  
          int i;
-@@ -1673,7 +1904,7 @@
+@@ -1673,7 +1903,7 @@
  
              for (int i1 = -l; i1 <= l; ++i1) {
                  for (int j1 = -l; j1 <= l; ++j1) {
@@ -460,7 +459,7 @@
                  }
              }
          }
-@@ -1851,7 +2082,10 @@
+@@ -1851,7 +2081,10 @@
      }
  
      public boolean c(EnumSkyBlock enumskyblock, BlockPosition blockposition) {
@@ -472,7 +471,7 @@
              return false;
          } else {
              int i = 0;
-@@ -2095,8 +2329,17 @@
+@@ -2095,8 +2328,17 @@
  
          while (iterator.hasNext()) {
              Entity entity = (Entity) iterator.next();
@@ -491,7 +490,7 @@
                  ++i;
              }
          }
-@@ -2105,12 +2348,17 @@
+@@ -2105,12 +2347,17 @@
      }
  
      public void b(Collection collection) {
@@ -511,7 +510,7 @@
              this.a(entity);
          }
  
-@@ -2124,7 +2372,13 @@
+@@ -2124,7 +2371,13 @@
          Block block1 = this.getType(blockposition).getBlock();
          AxisAlignedBB axisalignedbb = flag ? null : block.a(this, blockposition, block.getBlockData());
  
@@ -526,7 +525,7 @@
      }
  
      public int getBlockPower(BlockPosition blockposition, EnumDirection enumdirection) {
-@@ -2215,6 +2469,11 @@
+@@ -2215,6 +2468,11 @@
  
          for (int i = 0; i < this.players.size(); ++i) {
              EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
@@ -538,7 +537,7 @@
  
              if (IEntitySelector.d.apply(entityhuman1)) {
                  double d5 = entityhuman1.e(d0, d1, d2);
-@@ -2269,7 +2528,7 @@
+@@ -2269,7 +2527,7 @@
          return null;
      }
  
@@ -547,7 +546,7 @@
          this.dataManager.checkSession();
      }
  
-@@ -2331,6 +2590,16 @@
+@@ -2331,6 +2589,16 @@
  
      public void everyoneSleeping() {}
  
@@ -564,7 +563,7 @@
      public float h(float f) {
          return (this.q + (this.r - this.q) * f) * this.j(f);
      }
-@@ -2538,6 +2807,6 @@
+@@ -2538,6 +2806,6 @@
          int l = j * 16 + 8 - blockposition.getZ();
          short short0 = 128;