From d32777a53ef93ecb136c368ed73ffe1f2c57f137 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Fri, 24 May 2019 11:22:11 +0200 Subject: [PATCH] Revert "Fix //none removing arbitrary nbt" This reverts commit dd0bec89135fede4966d53180256bc346d677b54. --- .../src/main/java/com/boydti/fawe/util/BrushCache.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/util/BrushCache.java b/worldedit-core/src/main/java/com/boydti/fawe/util/BrushCache.java index 7c885af07..4adbcdc35 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/util/BrushCache.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/util/BrushCache.java @@ -77,11 +77,8 @@ public final class BrushCache { Map map; if (nbt == null) { if (tool == null) { - Map raw = nbt.getRaw(); - if (raw.remove("weBrushJson") != null && raw.isEmpty()) { - item.setNbtData(null); - } - return null; + item.setNbtData(null); + return tool; } nbt = new CompoundTag(map = new HashMap<>()); } else {