Fix stat sending
This commit is contained in:
parent
c04d3c5f80
commit
f6d479b736
@ -1,4 +1,4 @@
|
|||||||
From 6dad765f629a338297b6d7b95ad5bb64ee31c073 Mon Sep 17 00:00:00 2001
|
From 4dac5fc704f8342e0d85ab116d996115343e2cfa Mon Sep 17 00:00:00 2001
|
||||||
From: md_5 <md_5@live.com.au>
|
From: md_5 <md_5@live.com.au>
|
||||||
Date: Sat, 28 Sep 2013 18:35:51 +1000
|
Date: Sat, 28 Sep 2013 18:35:51 +1000
|
||||||
Subject: [PATCH] Snapshot Protocol
|
Subject: [PATCH] Snapshot Protocol
|
||||||
@ -31,7 +31,7 @@ index fb8bc87..5651bd0 100644
|
|||||||
public int A() {
|
public int A() {
|
||||||
diff --git a/src/main/java/net/minecraft/server/Packet200Statistic.java b/src/main/java/net/minecraft/server/Packet200Statistic.java
|
diff --git a/src/main/java/net/minecraft/server/Packet200Statistic.java b/src/main/java/net/minecraft/server/Packet200Statistic.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..8e9dc94
|
index 0000000..a850473
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/net/minecraft/server/Packet200Statistic.java
|
+++ b/src/main/java/net/minecraft/server/Packet200Statistic.java
|
||||||
@@ -0,0 +1,49 @@
|
@@ -0,0 +1,49 @@
|
||||||
@ -67,7 +67,7 @@ index 0000000..8e9dc94
|
|||||||
+ if ( org.spigotmc.SpigotConfig.snapshotProtocol )
|
+ if ( org.spigotmc.SpigotConfig.snapshotProtocol )
|
||||||
+ {
|
+ {
|
||||||
+ dataoutput.writeInt( 1 );
|
+ dataoutput.writeInt( 1 );
|
||||||
+ a( (String) StatisticList.a.get( this.a ), dataoutput );
|
+ a( ( (Statistic) StatisticList.a.get( this.a ) ).g, dataoutput );
|
||||||
+ dataoutput.writeInt( this.b );
|
+ dataoutput.writeInt( this.b );
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user