Skip to content

Commit 772be39

Browse files
committed
hotfix panel crashing when no player is present
1 parent 95a21af commit 772be39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ldtteam/domumornamentum/block/AbstractPanelBlockTrapdoor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public BlockState getStateForPlacement(@NotNull final BlockPlaceContext context)
8686
}
8787
else
8888
{
89-
blockstate = blockstate.setValue(FACING, context.getPlayer().getDirection()).setValue(HALF, direction == Direction.DOWN ? Half.TOP : Half.BOTTOM).setValue(OPEN, false);
89+
blockstate = blockstate.setValue(FACING, context.getHorizontalDirection()).setValue(HALF, direction == Direction.DOWN ? Half.TOP : Half.BOTTOM).setValue(OPEN, false);
9090
}
9191

9292
return blockstate.setValue(WATERLOGGED, fluidstate.getType() == Fluids.WATER);

0 commit comments

Comments
 (0)