mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Add Charged item tag if there's charged projectiles
Closes ViaVersion/ViaBackwards#787
This commit is contained in:
parent
1c281abf65
commit
b367caa4b2
@ -218,7 +218,12 @@ public final class StructuredDataConverter {
|
||||
}
|
||||
});
|
||||
register(StructuredDataKey.BASE_COLOR, (data, tag) -> getBlockEntityTag(tag).putInt("Base", data));
|
||||
register(StructuredDataKey.CHARGED_PROJECTILES1_20_5, (connection, data, tag) -> convertItemList(connection, data, tag, "ChargedProjectiles"));
|
||||
register(StructuredDataKey.CHARGED_PROJECTILES1_20_5, (connection, data, tag) -> {
|
||||
convertItemList(connection, data, tag, "ChargedProjectiles");
|
||||
if (data.length != 0) {
|
||||
tag.putBoolean("Charged", true);
|
||||
}
|
||||
});
|
||||
register(StructuredDataKey.BUNDLE_CONTENTS1_20_5, (connection, data, tag) -> convertItemList(connection, data, tag, "Items"));
|
||||
register(StructuredDataKey.LODESTONE_TRACKER, (data, tag) -> {
|
||||
tag.putBoolean("LodestoneTracked", data.tracked());
|
||||
|
Loading…
Reference in New Issue
Block a user