Skip to content

Commit

Permalink
Add registryData, finishConfiguration packet snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed Oct 1, 2023
1 parent 2de2ecf commit 30cf08e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions api/src/main/java/ua/nanit/limbo/connection/PacketSnapshots.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public final class PacketSnapshots {
private PacketSnapshot packetTitleLegacySubtitle;
private PacketSnapshot packetTitleLegacyTimes;

public static PacketSnapshot PACKET_REGISTRY_DATA;
public static PacketSnapshot PACKET_FINISH_CONFIGURATION;
private PacketSnapshot packetRegistryData;
private PacketSnapshot packetFinishConfiguration;

public PacketSnapshots(LimboServer server) {
final String username = server.getConfig().getPingData().getVersion();
Expand Down Expand Up @@ -197,8 +197,8 @@ public PacketSnapshots(LimboServer server) {
PacketRegistryData packetRegistryData = new PacketRegistryData();
packetRegistryData.setDimensionRegistry(server.getDimensionRegistry());

PACKET_REGISTRY_DATA = PacketSnapshot.of(packetRegistryData);
PACKET_FINISH_CONFIGURATION = PacketSnapshot.of(new PacketFinishConfiguration());
this.packetRegistryData = PacketSnapshot.of(packetRegistryData);
packetFinishConfiguration = PacketSnapshot.of(new PacketFinishConfiguration());
}

public PacketSnapshot getPacketLoginSuccess() {
Expand Down Expand Up @@ -272,4 +272,13 @@ public PacketSnapshot getPacketTitleLegacySubtitle() {
public PacketSnapshot getPacketTitleLegacyTimes() {
return packetTitleLegacyTimes;
}

public PacketSnapshot getPacketRegistryData() {
return packetRegistryData;
}

public PacketSnapshot getPacketFinishConfiguration() {
return packetFinishConfiguration;
}

}

0 comments on commit 30cf08e

Please sign in to comment.