mirror of
				https://hub.spigotmc.org/stash/scm/spigot/spigot.git
				synced 2025-11-01 09:09:35 +00:00 
			
		
		
		
	Add missing mc-dev import
This commit is contained in:
		
							parent
							
								
									3b72b52549
								
							
						
					
					
						commit
						a6deee8a8c
					
				
					 2 changed files with 43 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue