mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2025-01-23 21:31:20 +01:00
Ensure TagRewriter is initialized after mapping loading
This commit is contained in:
parent
7ec2b0ac63
commit
3d9feb2d81
@ -47,7 +47,7 @@ public class Protocol1_16to20w14infinite extends BackwardsProtocol<ClientboundPa
|
|||||||
|
|
||||||
private final BlockItemPackets20w14infinite blockItemPackets = new BlockItemPackets20w14infinite(this);
|
private final BlockItemPackets20w14infinite blockItemPackets = new BlockItemPackets20w14infinite(this);
|
||||||
private final MetadataRewriter1_16to20w14infinite metadataRewriter = new MetadataRewriter1_16to20w14infinite(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() {
|
public Protocol1_16to20w14infinite() {
|
||||||
super(ClientboundPackets20w14infinite.class, ClientboundPackets1_16.class, ServerboundPackets20w14infinite.class, ServerboundPackets1_16.class);
|
super(ClientboundPackets20w14infinite.class, ClientboundPackets1_16.class, ServerboundPackets20w14infinite.class, ServerboundPackets1_16.class);
|
||||||
@ -57,7 +57,6 @@ public class Protocol1_16to20w14infinite extends BackwardsProtocol<ClientboundPa
|
|||||||
protected void registerPackets() {
|
protected void registerPackets() {
|
||||||
super.registerPackets();
|
super.registerPackets();
|
||||||
|
|
||||||
tagRewriter = new TagRewriter<>(this);
|
|
||||||
tagRewriter.register(ClientboundPackets20w14infinite.TAGS, RegistryType.ENTITY);
|
tagRewriter.register(ClientboundPackets20w14infinite.TAGS, RegistryType.ENTITY);
|
||||||
new StatisticsRewriter<>(this).register(ClientboundPackets20w14infinite.STATISTICS);
|
new StatisticsRewriter<>(this).register(ClientboundPackets20w14infinite.STATISTICS);
|
||||||
EntityPackets20w14infinite.register(this);
|
EntityPackets20w14infinite.register(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user