Steps to reproduce
Load a world in survival mode
Look at the statistic "Distance Fallen"
Fall down some blocks
Look at the statistic "Distance Fallen" again (Statistics will not update)
Again fall down some blocks
Look at the statistic "Distance Fallen" again (Statistics will update)
Exceptions
You have fallen down 4 times after last reset (This means after last correct and loaded value or reopening the world)
Your statistics are resetted
The reason
In 1.8 there is a cooldown for statistic requests in the statistics sending method of the server:
StatisticsFile.java (1.8)
public void func_150876_a(EntityPlayerMP p_150876_1_) {
int var2 = this.field_150890_c.getTickCounter();
HashMap var3 = Maps.newHashMap();
/*
* If not at least 300 ticks have passed from when the last time
* statistics were requested, it just sends an empty map, so no statistics get
* updated
*/
if (this.field_150886_g || var2 - this.field_150885_f > 300) {
this.field_150885_f = var2;
Iterator var4 = this.func_150878_c().iterator();
while (var4.hasNext()) {
StatBase var5 = (StatBase)var4.next();
var3.put(var5, Integer.valueOf(this.writeStat(var5)));
}
}
p_150876_1_.playerNetServerHandler.sendPacket(new S37PacketStatistics(var3));
}
Linked issues
is duplicated by 2
relates to 3
Attachments
Comments 21
Reopen this please I am NOT TALKING ABOUT THE OBJECTIVE in the scoreboard!!!
This works fine! It always reloads when you land!
Isn't the statistic and the objective the same, as the objective's score is determined by the statistic, I could be wrong though.
Strangerwise not... there is already a report about this
Also the scoreboard objective seems to reload fine when you fall and land 🙂
The statistic "Distance fallen" is in km, you probably didn't fall far enough for the stat to detect it.
Can you please write which statistics it is also affecting, because for example the scoreboard statistic fallen did update every time
Duplicate of MC-30548