geforkt von Mirrors/FastAsyncWorldEdit
Fix //none removing arbitrary nbt
Dieser Commit ist enthalten in:
Ursprung
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 {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren