code style fix

This commit is contained in:
Sunch 2025-04-27 20:36:24 +08:00
parent fc5c5625cb
commit 5e8e9330e2
361 changed files with 4766 additions and 4650 deletions

View file

@ -6,11 +6,11 @@ class GlowingRedstoneOreBlock extends SolidBlock implements LightingBlock{
parent::__construct(GLOWING_REDSTONE_ORE, 0, "Glowing Redstone Ore");
$this->hardness = 15;
}
public static function onRandomTick(Level $level, $x, $y, $z){
$level->fastSetBlockUpdate($x, $y, $z, REDSTONE_ORE, 0);
}
public function getMaxLightValue(){
return 9;
}
@ -25,15 +25,15 @@ class GlowingRedstoneOreBlock extends SolidBlock implements LightingBlock{
default => 15,
};
}
public function getDrops(Item $item, Player $player){
if($item->getPickaxeLevel() >= 4){
return array(
array(REDSTONE_DUST, 0, mt_rand(4, 5)),
);
return [
[REDSTONE_DUST, 0, mt_rand(4, 5)],
];
}else{
return array();
return [];
}
}
}