mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 09:17:39 +00:00
Fix //none removing arbitrary nbt
This commit is contained in:
parent
317742e3f0
commit
dd0bec8913
@ -77,8 +77,11 @@ public final class BrushCache {
|
|||||||
Map<String, Tag> map;
|
Map<String, Tag> map;
|
||||||
if (nbt == null) {
|
if (nbt == null) {
|
||||||
if (tool == null) {
|
if (tool == null) {
|
||||||
item.setNbtData(null);
|
Map<String, Object> raw = nbt.getRaw();
|
||||||
return tool;
|
if (raw.remove("weBrushJson") != null && raw.isEmpty()) {
|
||||||
|
item.setNbtData(null);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
nbt = new CompoundTag(map = new HashMap<>());
|
nbt = new CompoundTag(map = new HashMap<>());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user