Revert "Remove dodgy code"

This reverts commit 76528b20c11ffcc487ce7be6896fd4e98ccc9e9e.
This commit is contained in:
Dylan K. Taylor 2025-04-06 19:17:27 +01:00
parent 395157c70a
commit 481d6b7f4d
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -267,6 +267,9 @@ class Campfire extends Transparent{
//TODO: we probably need to rethink how these are tracked
$tile->setCookingTimes($this->cookingTimes);
}
if(count($items) > 0){
$this->position->getWorld()->setBlock($this->position, $this);
}
if(mt_rand(1, 6) === 1){
$this->position->getWorld()->addSound($this->position, $furnaceType->getCookSound());
}