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
1 changed files with 2 additions and 1 deletions

View File

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