fix: tiles now tick when doDaylightCycle is off

closes #1
closes #3
This commit is contained in:
LordMZTE 2023-01-12 18:11:38 +01:00
parent 4b927c39f7
commit 3d0fc6eb71
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -114,9 +114,10 @@ public abstract class TileExtended extends TileEntity {
super.worldObj.setBlockToAir(super.xCoord, super.yCoord, super.zCoord); super.worldObj.setBlockToAir(super.xCoord, super.yCoord, super.zCoord);
} }
@Override
public void updateEntity() { public void updateEntity() {
if (!super.worldObj.isRemote && this.timeSched >= 0L) { if (!super.worldObj.isRemote && this.timeSched >= 0L) {
long wtime = super.worldObj.getWorldTime(); long wtime = super.worldObj.getTotalWorldTime();
if (this.timeSched > wtime + 1200L) { if (this.timeSched > wtime + 1200L) {
this.timeSched = wtime + 1200L; this.timeSched = wtime + 1200L;
} else if (this.timeSched <= wtime) { } else if (this.timeSched <= wtime) {