mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 22:30:01 +00:00
fix BB of daylight sensor
This commit is contained in:
parent
c533f6a0bd
commit
bce126b6d0
@ -84,7 +84,7 @@ class DaylightSensor extends Transparent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||||
return AxisAlignedBB::one()->trim(Facing::UP, 0.5);
|
return AxisAlignedBB::one()->trim(Facing::UP, 10 / 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user