Ejemplo n.º 1
0
 public function updateNormalWire(Block $block, $strength, $type, array $hasUpdated)
 {
     /** @var RedstoneWire $block */
     if ($block->getId() == Block::REDSTONE_WIRE) {
         if ($block->getStrength() < $strength) {
             return $block->calcSignal($strength, $type, $hasUpdated);
         }
     }
     return $hasUpdated;
 }