diff --git a/paper-server/nms-patches/net/minecraft/world/level/block/BlockBeehive.patch b/paper-server/nms-patches/net/minecraft/world/level/block/BlockBeehive.patch index 8c42896473..4377717ed6 100644 --- a/paper-server/nms-patches/net/minecraft/world/level/block/BlockBeehive.patch +++ b/paper-server/nms-patches/net/minecraft/world/level/block/BlockBeehive.patch @@ -9,3 +9,20 @@ } } } +@@ -331,4 +331,16 @@ + + return super.updateShape(iblockdata, enumdirection, iblockdata1, generatoraccess, blockposition, blockposition1); + } ++ ++ // CraftBukkit start - fix MC-227255 ++ @Override ++ public IBlockData rotate(IBlockData iblockdata, EnumBlockRotation enumblockrotation) { ++ return iblockdata.setValue(BlockBeehive.FACING, enumblockrotation.rotate(iblockdata.getValue(BlockBeehive.FACING))); ++ } ++ ++ @Override ++ public IBlockData mirror(IBlockData iblockdata, EnumBlockMirror enumblockmirror) { ++ return iblockdata.rotate(enumblockmirror.getRotation(iblockdata.getValue(BlockBeehive.FACING))); ++ } ++ // CraftBukkit end + } diff --git a/paper-server/nms-patches/net/minecraft/world/level/block/BlockBell.patch b/paper-server/nms-patches/net/minecraft/world/level/block/BlockBell.patch index 231a255a81..167cbb25cd 100644 --- a/paper-server/nms-patches/net/minecraft/world/level/block/BlockBell.patch +++ b/paper-server/nms-patches/net/minecraft/world/level/block/BlockBell.patch @@ -12,3 +12,20 @@ ((TileEntityBell) tileentity).onHit(enumdirection); world.playSound((EntityHuman) null, blockposition, SoundEffects.BELL_BLOCK, SoundCategory.BLOCKS, 2.0F, 1.0F); +@@ -268,4 +273,16 @@ + public boolean isPathfindable(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition, PathMode pathmode) { + return false; + } ++ ++ // CraftBukkit start - fix MC-253819 ++ @Override ++ public IBlockData rotate(IBlockData iblockdata, EnumBlockRotation enumblockrotation) { ++ return iblockdata.setValue(BlockBell.FACING, enumblockrotation.rotate(iblockdata.getValue(BlockBell.FACING))); ++ } ++ ++ @Override ++ public IBlockData mirror(IBlockData iblockdata, EnumBlockMirror enumblockmirror) { ++ return iblockdata.rotate(enumblockmirror.getRotation(iblockdata.getValue(BlockBell.FACING))); ++ } ++ // CraftBukkit end + }