From 1fac6b710de8435564b241faf2e5417dbff1c22b Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 16 Feb 2017 22:31:52 +1100 Subject: [PATCH] Debug no adapter --- .../java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java | 1 + .../com/boydti/fawe/bukkit/v1_10/BukkitChunk_1_10.java | 8 ++++---- .../com/boydti/fawe/bukkit/v1_11/BukkitChunk_1_11.java | 8 ++++---- .../com/boydti/fawe/bukkit/v1_11/BukkitQueue_1_11.java | 7 +++---- .../java/com/boydti/fawe/bukkit/v1_7/BukkitChunk_1_7.java | 8 ++++---- .../java/com/boydti/fawe/bukkit/v1_8/BukkitChunk_1_8.java | 8 ++++---- .../java/com/boydti/fawe/bukkit/v1_9/BukkitChunk_1_9.java | 8 ++++---- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java index 57f2afad..6c4c6094 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java @@ -158,6 +158,7 @@ public abstract class BukkitQueue_0 extends NMSMa } } catch (Throwable e) { Fawe.debug("====== NO NATIVE WORLDEDIT ADAPTER ======"); + e.printStackTrace(); Fawe.debug("Try updating WorldEdit: "); Fawe.debug(" - http://builds.enginehub.org/job/worldedit?branch=master"); Fawe.debug("See also: http://wiki.sk89q.com/wiki/WorldEdit/Bukkit_adapters"); diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_10/BukkitChunk_1_10.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_10/BukkitChunk_1_10.java index ccfe2135..6d7a9e9d 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_10/BukkitChunk_1_10.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_10/BukkitChunk_1_10.java @@ -199,7 +199,7 @@ public class BukkitChunk_1_10 extends CharFaweChunk { } else if (count >= 4096) { Collection ents = entities[i]; if (!ents.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { ents.clear(); } } @@ -209,7 +209,7 @@ public class BukkitChunk_1_10 extends CharFaweChunk { char[] array = this.getIdArray(i); if (array == null || entities[i] == null || entities[i].isEmpty()) continue; Entity[] entsArr = ents.toArray(new Entity[ents.size()]); - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (Entity entity : entsArr) { if (entity instanceof EntityPlayer) { continue; @@ -228,7 +228,7 @@ public class BukkitChunk_1_10 extends CharFaweChunk { } HashSet entsToRemove = this.getEntityRemoves(); if (!entsToRemove.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (int i = 0; i < entities.length; i++) { Collection ents = entities[i]; if (ents.isEmpty()) { @@ -246,7 +246,7 @@ public class BukkitChunk_1_10 extends CharFaweChunk { Set entitiesToSpawn = this.getEntities(); Set createdEntities = new HashSet<>(); if (!entitiesToSpawn.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (CompoundTag nativeTag : entitiesToSpawn) { Map entityTagMap = ReflectionUtils.getMap(nativeTag.getValue()); StringTag idTag = (StringTag) entityTagMap.get("Id"); diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitChunk_1_11.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitChunk_1_11.java index 18a383fd..8e6cfccb 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitChunk_1_11.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitChunk_1_11.java @@ -227,7 +227,7 @@ public class BukkitChunk_1_11 extends CharFaweChunk entsToRemove = this.getEntityRemoves(); if (!entsToRemove.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (int i = 0; i < entities.length; i++) { Collection ents = entities[i]; if (ents.isEmpty()) { @@ -256,7 +256,7 @@ public class BukkitChunk_1_11 extends CharFaweChunk entitiesToSpawn = this.getEntities(); Set createdEntities = new HashSet<>(); if (!entitiesToSpawn.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (CompoundTag nativeTag : entitiesToSpawn) { Map entityTagMap = ReflectionUtils.getMap(nativeTag.getValue()); StringTag idTag = (StringTag) entityTagMap.get("Id"); diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitQueue_1_11.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitQueue_1_11.java index af5fcfd2..35428c6e 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitQueue_1_11.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_11/BukkitQueue_1_11.java @@ -1,6 +1,5 @@ package com.boydti.fawe.bukkit.v1_11; -import com.boydti.fawe.Fawe; import com.boydti.fawe.FaweCache; import com.boydti.fawe.bukkit.v0.BukkitQueue_0; import com.boydti.fawe.example.CharFaweChunk; @@ -127,9 +126,9 @@ public class BukkitQueue_1_11 extends BukkitQueue_0> 4).fromLegacyData(i & 0xF); diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_7/BukkitChunk_1_7.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_7/BukkitChunk_1_7.java index 81b64bfb..2e7b830a 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_7/BukkitChunk_1_7.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_7/BukkitChunk_1_7.java @@ -162,7 +162,7 @@ public class BukkitChunk_1_7 extends CharFaweChunk { } else if (count >= 4096) { Collection ents = entities[i]; if (!ents.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { ents.clear(); } } @@ -172,7 +172,7 @@ public class BukkitChunk_1_7 extends CharFaweChunk { char[] array = this.getIdArray(i); if (array == null || entities[i] == null || entities[i].isEmpty()) continue; Entity[] entsArr = ents.toArray(new Entity[ents.size()]); - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (Entity entity : entsArr) { if (entity instanceof EntityPlayer) { continue; @@ -191,7 +191,7 @@ public class BukkitChunk_1_7 extends CharFaweChunk { } HashSet entsToRemove = this.getEntityRemoves(); if (!entsToRemove.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (int i = 0; i < entities.length; i++) { Collection ents = new ArrayList<>(entities[i]); for (Entity entity : ents) { @@ -206,7 +206,7 @@ public class BukkitChunk_1_7 extends CharFaweChunk { Set createdEntities = new HashSet<>(); Set entitiesToSpawn = this.getEntities(); if (!entitiesToSpawn.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (CompoundTag nativeTag : entitiesToSpawn) { Map entityTagMap = nativeTag.getValue(); StringTag idTag = (StringTag) entityTagMap.get("Id"); diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_8/BukkitChunk_1_8.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_8/BukkitChunk_1_8.java index bc0a245b..1d8f25da 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_8/BukkitChunk_1_8.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_8/BukkitChunk_1_8.java @@ -100,7 +100,7 @@ public class BukkitChunk_1_8 extends CharFaweChunk { } else if (count >= 4096) { Collection ents = entities[i]; if (!ents.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { ents.clear(); } } @@ -110,7 +110,7 @@ public class BukkitChunk_1_8 extends CharFaweChunk { char[] array = this.getIdArray(i); if (array == null || entities[i] == null || entities[i].isEmpty()) continue; Entity[] entsArr = ents.toArray(new Entity[ents.size()]); - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (Entity entity : entsArr) { if (entity instanceof EntityPlayer) { continue; @@ -129,7 +129,7 @@ public class BukkitChunk_1_8 extends CharFaweChunk { } HashSet entsToRemove = this.getEntityRemoves(); if (!entsToRemove.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (int i = 0; i < entities.length; i++) { Collection ents = entities[i]; if (ents.isEmpty()) { @@ -147,7 +147,7 @@ public class BukkitChunk_1_8 extends CharFaweChunk { Set createdEntities = new HashSet<>(); Set entitiesToSpawn = this.getEntities(); if (!entitiesToSpawn.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (CompoundTag nativeTag : entitiesToSpawn) { Map entityTagMap = nativeTag.getValue(); StringTag idTag = (StringTag) entityTagMap.get("Id"); diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitChunk_1_9.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitChunk_1_9.java index dfdfc9c5..179348ac 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitChunk_1_9.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitChunk_1_9.java @@ -200,7 +200,7 @@ public class BukkitChunk_1_9 extends CharFaweChunk { } else if (count >= 4096) { Collection ents = entities[i]; if (!ents.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { ents.clear(); } } @@ -210,7 +210,7 @@ public class BukkitChunk_1_9 extends CharFaweChunk { char[] array = this.getIdArray(i); if (array == null || entities[i] == null || entities[i].isEmpty()) continue; Entity[] entsArr = ents.toArray(new Entity[ents.size()]); - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (Entity entity : entsArr) { if (entity instanceof EntityPlayer) { continue; @@ -229,7 +229,7 @@ public class BukkitChunk_1_9 extends CharFaweChunk { } HashSet entsToRemove = this.getEntityRemoves(); if (!entsToRemove.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (int i = 0; i < entities.length; i++) { Collection ents = entities[i]; if (ents.isEmpty()) { @@ -247,7 +247,7 @@ public class BukkitChunk_1_9 extends CharFaweChunk { Set entitiesToSpawn = this.getEntities(); Set createdEntities = new HashSet<>(); if (!entitiesToSpawn.isEmpty()) { - synchronized (BukkitQueue_0.adapter) { + synchronized (BukkitQueue_0.class) { for (CompoundTag nativeTag : entitiesToSpawn) { Map entityTagMap = ReflectionUtils.getMap(nativeTag.getValue()); StringTag idTag = (StringTag) entityTagMap.get("Id");