fixed player posiiton on bed, hopefully fixed players not receiving packets sometimes

This commit is contained in:
GameHerobrine 2026-01-03 15:55:22 +03:00
parent f93aa2601a
commit 4c072e91cd
4 changed files with 19 additions and 9 deletions

View file

@ -14,6 +14,8 @@ class BedBlock extends TransparentBlock{
[0, -1],
[1, 0]
];
const PLAYER_BED_OFFS_X = [0.5, 0.1, 0.5, 0.9];
const PLAYER_BED_OFFS_Z = [0.9, 0.5, 0.1, 0.5];
public function __construct($type = 0){
parent::__construct(BED_BLOCK, $type, "Bed Block");
$this->isActivable = true;