[Bleeding] Fix mistranslation affecting time of the server vs time of day.

Fixes BUKKIT-2797
This commit is contained in:
md_5 authored and EvilSeph committed 2012-11-02 16:36:43 -04:00
1 parent 3dd0580d50
commit 53d24e2b22
3 files changed
+5 -5

No files matched your search

@@ -739,10 +739,10 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
public long getPlayerTime() {
if (this.relativeTime) {
// Adds timeOffset to the current server time.
return this.world.getTime() + this.timeOffset;
return this.world.F() + this.timeOffset;
} else {
// Adds timeOffset to the beginning of this day.
return this.world.getTime() - (this.world.getTime() % 24000) + this.timeOffset;
return this.world.F() - (this.world.F() % 24000) + this.timeOffset;
}
}