2018-11-28 03:18:06 +01:00
|
|
|
--- a/net/minecraft/network/protocol/Packet.java
|
|
|
|
+++ b/net/minecraft/network/protocol/Packet.java
|
2024-12-13 18:56:07 +01:00
|
|
|
@@ -11,6 +_,19 @@
|
2018-11-28 03:18:06 +01:00
|
|
|
|
2024-12-13 18:56:07 +01:00
|
|
|
void handle(T handler);
|
2018-11-28 03:18:06 +01:00
|
|
|
|
|
|
|
+ // Paper start
|
|
|
|
+ default boolean hasLargePacketFallback() {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * override {@link #hasLargePacketFallback()} to return true when overriding in subclasses
|
|
|
|
+ */
|
|
|
|
+ default boolean packetTooLarge(net.minecraft.network.Connection manager) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
+
|
|
|
|
default boolean isSkippable() {
|
|
|
|
return false;
|
|
|
|
}
|