From e4c1ba3edf98a6ee19d8c36159b814808961c77d Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 19 May 2019 20:55:45 +0200 Subject: [PATCH] Revert "Fix //none removing arbitrary nbt" This reverts 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 {