mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Fixed exp resetting upon teleporting cross-world (fixes BUKKIT-46. Again.)
This commit is contained in:
parent
98e062f0cf
commit
1dbebb4593
2 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||||
private int cc = -99999999;
|
private int cc = -99999999;
|
||||||
private int cd = -99999999;
|
private int cd = -99999999;
|
||||||
private boolean ce = true;
|
private boolean ce = true;
|
||||||
private int cf = -99999999;
|
public int cf = -99999999; // Craftbukkit - priv to pub - "lastSentExp"
|
||||||
private int cg = 60;
|
private int cg = 60;
|
||||||
private ItemStack[] ch = new ItemStack[] { null, null, null, null, null};
|
private ItemStack[] ch = new ItemStack[] { null, null, null, null, null};
|
||||||
private int ci = 0;
|
private int ci = 0;
|
||||||
|
|
|
@ -703,6 +703,7 @@ public class ServerConfigurationManager {
|
||||||
public void updateClient(EntityPlayer entityplayer) {
|
public void updateClient(EntityPlayer entityplayer) {
|
||||||
entityplayer.updateInventory(entityplayer.defaultContainer);
|
entityplayer.updateInventory(entityplayer.defaultContainer);
|
||||||
entityplayer.s_();
|
entityplayer.s_();
|
||||||
|
entityplayer.cf = -1; // CraftBukkit added
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPlayerCount() {
|
public int getPlayerCount() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue