mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 11:29:23 +01:00
Fix Tiny Toch placement (Fixes #1409)
This commit is contained in:
parent
0e3a961257
commit
a6a9467dd1
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ import net.minecraft.world.phys.shapes.VoxelShape;
|
|||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class BlockTinyTorch extends BlockBase {
|
||||
public static final DirectionProperty FACING = DirectionProperty.create("facing", Direction.NORTH, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.UP);
|
||||
public static final DirectionProperty FACING = DirectionProperty.create("facing", direction -> direction != Direction.DOWN);
|
||||
|
||||
public BlockTinyTorch() {
|
||||
super(Properties.of().pushReaction(PushReaction.DESTROY).sound(SoundType.WOOD).strength(0.0F, 0.8F));
|
||||
|
@ -90,7 +90,7 @@ public class BlockTinyTorch extends BlockBase {
|
|||
Direction facing = context.getClickedFace();
|
||||
BlockPos pos = context.getClickedPos();
|
||||
if (this.canSurvive(state, levelreader, pos)) {
|
||||
return state.setValue(BlockTinyTorch.FACING, facing);
|
||||
return state.setValue(BlockTinyTorch.FACING, facing.getAxis() == Direction.Axis.Y ? Direction.UP : facing);
|
||||
} else {
|
||||
Direction[] adirection = context.getNearestLookingDirections();
|
||||
for(Direction direction : adirection) {
|
||||
|
|
Loading…
Reference in a new issue