Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
Add missing mc-dev import
Dieser Commit ist enthalten in:
Ursprung
0969fa97c6
Commit
4b61cd6e60
@ -1,4 +1,4 @@
|
||||
From d69d53f8ab2ce47b0b39cd6bce280146f4ae04b4 Mon Sep 17 00:00:00 2001
|
||||
From fb94f1e23aacd0bf284e7451927d6062eecddfad Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Sun, 1 Dec 2013 15:10:48 +1100
|
||||
Subject: [PATCH] mc-dev imports
|
||||
@ -3001,6 +3001,28 @@ index 0000000..670d626
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java b/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java
|
||||
new file mode 100644
|
||||
index 0000000..c611db1
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java
|
||||
@@ -0,0 +1,16 @@
|
||||
+package net.minecraft.server;
|
||||
+
|
||||
+import java.io.IOException;
|
||||
+
|
||||
+public class PacketPlayInArmAnimation implements Packet<PacketListenerPlayIn> {
|
||||
+
|
||||
+ public PacketPlayInArmAnimation() {}
|
||||
+
|
||||
+ public void a(PacketDataSerializer packetdataserializer) throws IOException {}
|
||||
+
|
||||
+ public void b(PacketDataSerializer packetdataserializer) throws IOException {}
|
||||
+
|
||||
+ public void a(PacketListenerPlayIn packetlistenerplayin) {
|
||||
+ packetlistenerplayin.a(this);
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayInChat.java b/src/main/java/net/minecraft/server/PacketPlayInChat.java
|
||||
new file mode 100644
|
||||
index 0000000..0ab90f3
|
||||
|
@ -1,9 +1,28 @@
|
||||
From bbc82ac5ec6cf152414fa0b8e7ccd080535cc993 Mon Sep 17 00:00:00 2001
|
||||
From 0c4bed4b7bcd2b27939a8d1324778f09fa2b5fc1 Mon Sep 17 00:00:00 2001
|
||||
From: Thinkofdeath <thinkofdeath@spigotmc.org>
|
||||
Date: Sun, 29 Jun 2014 21:10:34 +0100
|
||||
Subject: [PATCH] Limit block placement/interaction packets
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java b/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java
|
||||
index c611db1..28cb5e3 100644
|
||||
--- a/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java
|
||||
+++ b/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java
|
||||
@@ -4,9 +4,13 @@ import java.io.IOException;
|
||||
|
||||
public class PacketPlayInArmAnimation implements Packet<PacketListenerPlayIn> {
|
||||
|
||||
+ public long timestamp; // Spigot
|
||||
+
|
||||
public PacketPlayInArmAnimation() {}
|
||||
|
||||
- public void a(PacketDataSerializer packetdataserializer) throws IOException {}
|
||||
+ public void a(PacketDataSerializer packetdataserializer) throws IOException {
|
||||
+ timestamp = System.currentTimeMillis(); // Spigot
|
||||
+ }
|
||||
|
||||
public void b(PacketDataSerializer packetdataserializer) throws IOException {}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index ee6fa34..d63c65d 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren