Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/horizontal-slabs' into horizonta…
Browse files Browse the repository at this point in the history
…l-slabs

# Conflicts:
#	src/main/java/nl/lelebees/betterslabs/mixin/BlockPlacementMixin.java
  • Loading branch information
Lelebees committed Mar 15, 2024
2 parents f14aa7f + d0ebcfe commit f850e61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private void verticalSlabs(World world, BlockState targetBlockState, BlockPositi
String newOrientation = "vertical" + ViewDirection.getViewDirection(InGame.getLocalPlayer().getEntity()).getOrientation();
blockStateLocalRef.set(fetchNewState(blockState, newOrientation));
}

@WrapOperation(method = "raycast", at = @At(value = "INVOKE", target = "Lfinalforeach/cosmicreach/world/BlockSelection;placeBlock(Lfinalforeach/cosmicreach/world/World;Lfinalforeach/cosmicreach/world/blocks/BlockState;Lfinalforeach/cosmicreach/world/BlockPosition;D)V"))
private void horizontalSlabs(BlockSelection instance, World world, BlockState targetBlockState, BlockPosition targetBlockPos, double timeSinceBlockModify, Operation<Void> original, @Local(name = "breakingBlockPos") BlockPosition selectedBlockPosition) {
// TODO: If the face is side, place the slab corresponding to the half of the face the player is looking at (top half > top slab, bottom half > bottom slab)
Expand Down

0 comments on commit f850e61

Please sign in to comment.