Update to Minecraft 1.12-pre5

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-05-19 21:00:13 +10:00
parent 5284eb89a3
commit 530fe41851
47 changed files with 222 additions and 283 deletions

View File

@@ -591,12 +591,8 @@
}
}
@@ -980,9 +1232,10 @@
}
protected void t() {
- boolean flag = this.Y();
+ boolean flag = this.Y(); // PAIL: rename
@@ -983,6 +1235,7 @@
boolean flag = this.isRaining();
super.t();
+ /* CraftBukkit start
@@ -608,7 +604,7 @@
this.server.getPlayerList().sendAll(new PacketPlayOutGameStateChange(8, this.q));
}
+ // */
+ if (flag != this.Y()) {
+ if (flag != this.isRaining()) {
+ // Only send weather packets to those affected
+ for (int i = 0; i < this.players.size(); ++i) {
+ if (((EntityPlayer) this.players.get(i)).world == this) {