arrow collision tweaks

This commit is contained in:
GameHerobrine 2024-05-04 05:51:31 +03:00
parent f8ec00dad9
commit 8b07056323
17 changed files with 137 additions and 51 deletions

View file

@ -8,7 +8,9 @@ class SignPostBlock extends TransparentBlock{
4 => 4,
5 => 5,
];
public static function getAABB(Level $level, $x, $y, $z){
return null;
}
public function __construct($meta = 0){
parent::__construct(SIGN_POST, $meta, "Sign Post");
$this->isSolid = false;

View file

@ -5,9 +5,15 @@ class TorchBlock extends FlowableBlock implements LightingBlock{
parent::__construct(TORCH, $meta, "Torch");
$this->hardness = 0;
}
public function getMaxLightValue(){
return 15;
}
public static function getAABB(Level $level, $x, $y, $z){
return null;
}
public function onUpdate($type){
if($type === BLOCK_UPDATE_NORMAL){
$side = $this->getMetadata();