Furnace: fixed deactivation after being reloaded from disk (regression from PM3)

closes #4430
This commit is contained in:
Dylan K. Taylor 2021-09-12 15:49:33 +01:00
parent ace8841d5d
commit 84170ad3e1
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -82,6 +82,10 @@ abstract class Furnace extends Spawnable implements Container, Nameable{
$this->loadName($nbt);
$this->loadItems($nbt);
if($this->remainingFuelTime > 0){
$this->position->getWorld()->scheduleDelayedBlockUpdate($this->position, 1);
}
}
protected function writeSaveData(CompoundTag $nbt) : void{