mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
small drop fix
This commit is contained in:
parent
b362f262f4
commit
adf84efbd7
2 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue