mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-23 08:57:39 +01:00
Some cleanup
This commit is contained in:
parent
1864b66e42
commit
4854b131b8
@ -62,7 +62,7 @@ public class ItemType1_20_5 extends Type<Item> {
|
||||
return new Reference2ObjectOpenHashMap<>();
|
||||
}
|
||||
|
||||
final Map<StructuredDataKey<?>, StructuredData<?>> map = new Reference2ObjectOpenHashMap<>(valuesSize + markersSize);
|
||||
final Map<StructuredDataKey<?>, StructuredData<?>> map = new Reference2ObjectOpenHashMap<>();
|
||||
for (int i = 0; i < valuesSize; i++) {
|
||||
final StructuredData<?> value = dataType.read(buffer);
|
||||
final StructuredDataKey<?> key = dataType.key(value.id());
|
||||
|
@ -430,13 +430,8 @@ public final class StructuredDataConverter {
|
||||
return true;
|
||||
}
|
||||
|
||||
String identifier = BannerPatterns1_20_5.idToKey(layer.pattern().id());
|
||||
if (identifier == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
identifier = Key.stripMinecraftNamespace(identifier);
|
||||
return identifier.equals("flow") || identifier.equals("guster");
|
||||
final String identifier = BannerPatterns1_20_5.idToKey(layer.pattern().id());
|
||||
return identifier == null || identifier.equals("flow") || identifier.equals("guster");
|
||||
})) {
|
||||
final ListTag<CompoundTag> originalPatterns = new ListTag<>(CompoundTag.class);
|
||||
for (final BannerPatternLayer layer : data) {
|
||||
|
Loading…
Reference in New Issue
Block a user