From d92509a6e755271f629dffc79ee35636df7f6a27 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 14 May 2021 10:42:08 +0100 Subject: Re-implement up/down placement metadata (#5219) + Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour. * Fixes #4651 --- src/Blocks/BlockBed.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Blocks/BlockBed.h') diff --git a/src/Blocks/BlockBed.h b/src/Blocks/BlockBed.h index d9f37b365..a6b2814b9 100644 --- a/src/Blocks/BlockBed.h +++ b/src/Blocks/BlockBed.h @@ -4,17 +4,21 @@ #pragma once #include "BlockEntity.h" -#include "Mixins.h" #include "ChunkInterface.h" +#include "Entities/Player.h" +#include "Mixins.h" + + + class cEntity; -class cPlayer; class cWorldInterface; + class cBlockBedHandler final : public cYawRotator { -- cgit v1.2.3