small drop fix

This commit is contained in:
GameHerobrine 2023-10-29 00:41:13 +03:00
parent b362f262f4
commit adf84efbd7
2 changed files with 12 additions and 2 deletions

View file

@ -15,7 +15,17 @@ class StairBlock extends TransparentBlock{
}
$this->hardness = 30;
}
/*public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){
$bbs = [];
$meta = $level->level->getBlockDamage($x, $y, $z);
if(($meta & 4) != 0){
$bbs[] = new AxisAlignedBB(0, 0.5, 0, 1, 1, 1);
}else{
$bbs[] = new AxisAlignedBB(0, 0, 0, 1, 0.5, 1);
}
}*/ //TODO stair collision
/**
* @param Item $item
* @param Player $player

View file

@ -31,7 +31,7 @@ class LitPumpkinBlock extends SolidBlock implements LightingBlock{
public function getDrops(Item $item, Player $player){
return [
[JACK_O_LANTERN, 0]
[JACK_O_LANTERN, 0, 1]
];
}