You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ structureTemplate.load(this.blockLookup, ca.spottedleaf.dataconverter.minecraft.MCDataConverter.convertTag(ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry.STRUCTURE, nbt, dataVersion, ca.spottedleaf.dataconverter.minecraft.util.Version.getCurrentVersion())); // Paper - rewrite data conversion system
33015
+
int dataVersion = NbtUtils.getDataVersion(tag, 500);
+ structureTemplate.load(this.blockLookup, ca.spottedleaf.dataconverter.minecraft.MCDataConverter.convertTag(ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry.STRUCTURE, tag, dataVersion, ca.spottedleaf.dataconverter.minecraft.util.Version.getCurrentVersion())); // Paper - rewrite data conversion system
@@ -148,7 +148,7 @@ index b763de1149e4c6e09400faa89bb899d6611a55d4..73efdf094dc98ef0a2e84c4e040fdaf1
148
148
}
149
149
}
150
150
151
-
@@ -474,16 +525,57 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
151
+
@@ -472,16 +523,57 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
152
152
}
153
153
}
154
154
@@ -211,15 +211,15 @@ index b763de1149e4c6e09400faa89bb899d6611a55d4..73efdf094dc98ef0a2e84c4e040fdaf1
211
211
212
212
private static final int MAX_PER_TICK = io.papermc.paper.configuration.GlobalConfiguration.get().misc.maxJoinsPerTick; // Paper - Buffer joins to world
213
213
private static int joinAttemptsThisTick; // Paper - Buffer joins to world
214
-
@@ -553,6 +645,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
214
+
@@ -551,6 +643,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
215
215
216
216
public void disconnect(DisconnectionDetails disconnectionDetails) {
217
217
this.preparing = false; // Spigot
218
218
+ this.clearPacketQueue(); // Paper - Optimize network
219
219
if (this.channel == null) {
220
220
this.delayedDisconnect = disconnectionDetails;
221
221
}
222
-
@@ -741,7 +834,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
222
+
@@ -739,7 +832,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
223
223
public void handleDisconnection() {
224
224
if (this.channel != null && !this.channel.isOpen()) {
225
225
if (this.disconnectionHandled) {
@@ -228,7 +228,7 @@ index b763de1149e4c6e09400faa89bb899d6611a55d4..73efdf094dc98ef0a2e84c4e040fdaf1
0 commit comments