Skip to content

Commit

Permalink
Ensure TagRewriter is initialized after mapping loading
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Jan 13, 2024
1 parent 7ec2b0a commit 3d9feb2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class Protocol1_16to20w14infinite extends BackwardsProtocol<ClientboundPa

private final BlockItemPackets20w14infinite blockItemPackets = new BlockItemPackets20w14infinite(this);
private final MetadataRewriter1_16to20w14infinite metadataRewriter = new MetadataRewriter1_16to20w14infinite(this);
private TagRewriter<ClientboundPackets20w14infinite> tagRewriter;
private final TagRewriter<ClientboundPackets20w14infinite> tagRewriter = new TagRewriter<>(this);

public Protocol1_16to20w14infinite() {
super(ClientboundPackets20w14infinite.class, ClientboundPackets1_16.class, ServerboundPackets20w14infinite.class, ServerboundPackets1_16.class);
Expand All @@ -57,7 +57,6 @@ public Protocol1_16to20w14infinite() {
protected void registerPackets() {
super.registerPackets();

tagRewriter = new TagRewriter<>(this);
tagRewriter.register(ClientboundPackets20w14infinite.TAGS, RegistryType.ENTITY);
new StatisticsRewriter<>(this).register(ClientboundPackets20w14infinite.STATISTICS);
EntityPackets20w14infinite.register(this);
Expand Down

0 comments on commit 3d9feb2

Please sign in to comment.