Add empty flowers and tall_flowers tags

Fixes #945
This commit is contained in:
Nassim Jahnke 2024-12-22 10:54:05 +01:00
parent a38904e5c6
commit b197c758b5
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 9 additions and 1 deletions

View File

@ -27,6 +27,7 @@ import com.viaversion.viabackwards.protocol.v1_21_4to1_21_2.rewriter.EntityPacke
import com.viaversion.viabackwards.protocol.v1_21_4to1_21_2.rewriter.ParticleRewriter1_21_4;
import com.viaversion.viaversion.api.connection.UserConnection;
import com.viaversion.viaversion.api.minecraft.Particle;
import com.viaversion.viaversion.api.minecraft.RegistryType;
import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_21_4;
import com.viaversion.viaversion.api.protocol.packet.provider.PacketTypesProvider;
import com.viaversion.viaversion.api.protocol.packet.provider.SimplePacketTypesProvider;
@ -165,6 +166,13 @@ public final class Protocol1_21_4To1_21_2 extends BackwardsProtocol<ClientboundP
});
}
@Override
protected void onMappingDataLoaded() {
super.onMappingDataLoaded();
tagRewriter.addEmptyTags(RegistryType.ITEM, "minecraft:tall_flowers", "minecraft:flowers");
tagRewriter.addEmptyTag(RegistryType.BLOCK, "minecraft:tall_flowers");
}
@Override
public void init(final UserConnection user) {
addEntityTracker(user, new EntityTrackerBase(user, EntityTypes1_21_4.PLAYER));

View File

@ -16,7 +16,7 @@ checkerQual = "3.39.0"
paper = "1.16.5-R0.1-SNAPSHOT"
velocity = "3.1.1"
fabricLoader = "0.11.6"
viaProxy = "3.3.7-SNAPSHOT"
viaProxy = "3.3.8-SNAPSHOT"
[libraries]