mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 14:04:49 +01:00
SPIGOT-4767: Fire from lava persists after respawn
This commit is contained in:
parent
f5285abf2b
commit
f4dc98074c
1 changed files with 22 additions and 14 deletions
|
@ -568,24 +568,25 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -941,7 +1218,16 @@
|
||||
@@ -941,8 +1218,17 @@
|
||||
|
||||
public void triggerHealthUpdate() {
|
||||
this.lastHealthSent = -1.0E8F;
|
||||
+ this.lastSentExp = -1; // CraftBukkit - Added to reset
|
||||
+ }
|
||||
+
|
||||
}
|
||||
|
||||
+ // CraftBukkit start - Support multi-line messages
|
||||
+ public void sendMessage(IChatBaseComponent[] ichatbasecomponent) {
|
||||
+ for (IChatBaseComponent component : ichatbasecomponent) {
|
||||
+ this.sendMessage(component);
|
||||
+ }
|
||||
}
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
+
|
||||
@Override
|
||||
public void a(IChatBaseComponent ichatbasecomponent, boolean flag) {
|
||||
@@ -996,7 +1282,7 @@
|
||||
this.playerConnection.sendPacket(new PacketPlayOutChat(ichatbasecomponent, flag ? ChatMessageType.GAME_INFO : ChatMessageType.CHAT));
|
||||
@@ -996,12 +1282,14 @@
|
||||
this.lastSentExp = -1;
|
||||
this.lastHealthSent = -1.0F;
|
||||
this.lastFoodSent = -1;
|
||||
|
@ -594,7 +595,14 @@
|
|||
this.removeQueue.addAll(entityplayer.removeQueue);
|
||||
this.cp = entityplayer.cp;
|
||||
this.cu = entityplayer.cu;
|
||||
@@ -1063,6 +1349,18 @@
|
||||
this.setShoulderEntityLeft(entityplayer.getShoulderEntityLeft());
|
||||
this.setShoulderEntityRight(entityplayer.getShoulderEntityRight());
|
||||
+
|
||||
+ this.S = false; // SPIGOT-4767
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1063,6 +1351,18 @@
|
||||
|
||||
@Override
|
||||
public void a(EnumGamemode enumgamemode) {
|
||||
|
@ -613,7 +621,7 @@
|
|||
this.playerInteractManager.setGameMode(enumgamemode);
|
||||
this.playerConnection.sendPacket(new PacketPlayOutGameStateChange(3, (float) enumgamemode.getId()));
|
||||
if (enumgamemode == EnumGamemode.SPECTATOR) {
|
||||
@@ -1113,6 +1411,17 @@
|
||||
@@ -1113,6 +1413,17 @@
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSettings packetplayinsettings) {
|
||||
|
@ -631,7 +639,7 @@
|
|||
this.locale = packetplayinsettings.b();
|
||||
this.ck = packetplayinsettings.d();
|
||||
this.cl = packetplayinsettings.e();
|
||||
@@ -1149,13 +1458,13 @@
|
||||
@@ -1149,13 +1460,13 @@
|
||||
if (entity instanceof EntityHuman) {
|
||||
this.playerConnection.sendPacket(new PacketPlayOutEntityDestroy(new int[] { entity.getId()}));
|
||||
} else {
|
||||
|
@ -647,7 +655,7 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -1179,7 +1488,7 @@
|
||||
@@ -1179,7 +1490,7 @@
|
||||
this.spectatedEntity = (Entity) (entity == null ? this : entity);
|
||||
if (entity1 != this.spectatedEntity) {
|
||||
this.playerConnection.sendPacket(new PacketPlayOutCamera(this.spectatedEntity));
|
||||
|
@ -656,7 +664,7 @@
|
|||
}
|
||||
|
||||
}
|
||||
@@ -1208,7 +1517,7 @@
|
||||
@@ -1208,7 +1519,7 @@
|
||||
|
||||
@Nullable
|
||||
public IChatBaseComponent getPlayerListName() {
|
||||
|
@ -665,7 +673,7 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -1226,21 +1535,33 @@
|
||||
@@ -1226,21 +1537,33 @@
|
||||
}
|
||||
|
||||
public void J() {
|
||||
|
@ -699,7 +707,7 @@
|
|||
if (worldserver == this.world) {
|
||||
this.playerConnection.a(d0, d1, d2, f, f1);
|
||||
} else {
|
||||
@@ -1263,6 +1584,9 @@
|
||||
@@ -1263,6 +1586,9 @@
|
||||
this.server.getPlayerList().a(this, worldserver);
|
||||
this.server.getPlayerList().updateClient(this);
|
||||
}
|
||||
|
@ -709,7 +717,7 @@
|
|||
|
||||
}
|
||||
|
||||
@@ -1314,4 +1638,144 @@
|
||||
@@ -1314,4 +1640,144 @@
|
||||
return entityitem;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue