From 3182441e667c105fc0cfaaf6b37ec4379f0bf7f4 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 18 Apr 2018 18:00:21 +1000 Subject: [PATCH] Fix chunk listener detection --- .../main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java index c6aee342..b67856f7 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java @@ -237,8 +237,8 @@ public abstract class ChunkListener implements Listener { StackTraceElement elem = getElement(e, frame); if (elem != null) { String methodName = elem.getMethodName(); - // setAir (hacky, but this needs to be efficient) - if (methodName.charAt(0) == 's' && methodName.length() == 6) { + // setAir | setTypeAndData (hacky, but this needs to be efficient) + if (methodName.charAt(0) == 's' && methodName.length() == 6 || methodName.length() == 14) { return true; } }