Skip to content

Commit

Permalink
Fix #31: ME Source Jar is always placed facing North
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Dec 9, 2024
1 parent 7056945 commit 2bc85e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/gripe/_90/arseng/block/MESourceJarBlock.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package gripe._90.arseng.block;

import java.util.Objects;
import java.util.stream.Stream;
import javax.annotation.ParametersAreNonnullByDefault;

Expand Down Expand Up @@ -91,7 +92,8 @@ public FluidState getFluidState(BlockState state) {
@Override
public BlockState getStateForPlacement(BlockPlaceContext context) {
var fluidState = context.getLevel().getFluidState(context.getClickedPos());
return defaultBlockState().setValue(BlockStateProperties.WATERLOGGED, fluidState.getType() == Fluids.WATER);
return Objects.requireNonNull(super.getStateForPlacement(context))
.setValue(BlockStateProperties.WATERLOGGED, fluidState.getType() == Fluids.WATER);
}

@NotNull
Expand Down

0 comments on commit 2bc85e1

Please sign in to comment.