Wooden Button can be a fuel (#6099)

This commit is contained in:
Hugo_ 2023-10-17 17:30:35 +02:00 committed by GitHub
parent 224a69b11a
commit c14eb63f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,4 +35,8 @@ class WoodenButton extends Button{
public function hasEntityCollision() : bool{
return false; //TODO: arrows activate wooden buttons
}
public function getFuelTime() : int{
return $this->woodType->isFlammable() ? 100 : 0;
}
}