Revert "Fix //none removing arbitrary nbt"

This reverts dd0bec8913.
Dieser Commit ist enthalten in:
NotMyFault 2019-05-19 20:55:45 +02:00
Ursprung e72a5cf12d
Commit e4c1ba3edf

Datei anzeigen

@ -77,11 +77,8 @@ public final class BrushCache {
Map<String, Tag> map;
if (nbt == null) {
if (tool == null) {
Map<String, Object> 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 {