mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Fixes
This commit is contained in:
parent
c27cca6741
commit
24c0e2742a
8 changed files with 16 additions and 30 deletions
|
|
@ -34,7 +34,6 @@ class AirBlock extends TransparentBlock{
|
|||
$this->isTransparent = true;
|
||||
$this->isReplaceable = true;
|
||||
$this->isPlaceable = false;
|
||||
$this->inWorld = false;
|
||||
$this->hasPhysics = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ class BedBlock extends TransparentBlock{
|
|||
3 => 5,
|
||||
);
|
||||
$d = $player->entity->getDirection();
|
||||
$next = $this->level->getBlockFace($block, $faces[(($d + 3) % 4)]);
|
||||
$downNext = $this->level->getBlockFace($next, 0);
|
||||
$next = $this->getSide($faces[(($d + 3) % 4)]);
|
||||
$downNext = $this->getSide(0);
|
||||
if($next->isReplaceable === true and $downNext->isTransparent === false){
|
||||
$meta = (($d + 3) % 4) & 0x03;
|
||||
$this->level->setBlock($block, BlockAPI::get($this->id, $meta));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue