Skip to content

Commit

Permalink
tweak: edit to some ShockedPlot7560 comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CJMustard1452 committed Aug 19, 2024
1 parent 4a2c6cc commit 10ac730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/block/CakeWithCandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player
}

public function onProjectileInteraction(Projectile $projectile) : void{
if($projectile instanceof WindCharge) {
if(!$this->lit) {
return;
}
if($projectile instanceof WindCharge && $this->lit) {

$world = $this->position->getWorld();
$world->setBlock($this->position, $this->setLit(false));
Expand Down
5 changes: 1 addition & 4 deletions src/block/Candle.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ protected function getCandleIfCompatibleType(Block $block) : ?Candle{
}

public function onProjectileInteraction(Projectile $projectile) : void{
if($projectile instanceof WindCharge) {
if(!$this->lit) {
return;
}
if($projectile instanceof WindCharge && $this->lit) {

$newCandle = $this->setLit(false);
$world = $this->position->getWorld();
Expand Down

0 comments on commit 10ac730

Please sign in to comment.