follow-up fix for last commit
This commit is contained in:
parent
e60e20bbd9
commit
b1d86815bb
2 changed files with 3 additions and 2 deletions
|
@ -260,7 +260,7 @@ public class DimensionalDoorBlock extends WaterLoggableDoorBlock implements Rift
|
|||
}
|
||||
RiftData data = ((EntranceRiftBlockEntity) world.getBlockEntity(pos)).getData();
|
||||
return TypedActionResult.success(new Pair<>(ModBlocks.DETACHED_RIFT.getDefaultState().with(WATERLOGGED, blockState.get(WATERLOGGED)), blockEntity -> {
|
||||
((EntranceRiftBlockEntity) blockEntity).setData(data);
|
||||
((DetachedRiftBlockEntity) blockEntity).setData(data);
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,8 @@ public abstract class WorldMixin {
|
|||
locals = LocalCapture.CAPTURE_FAILHARD,
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/World;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Z",
|
||||
ordinal = 0))
|
||||
ordinal = 0,
|
||||
shift = At.Shift.AFTER))
|
||||
private void applyBlockEntityModification(BlockPos pos, boolean drop, Entity breakingEntity, int maxUpdateDepth, CallbackInfoReturnable<Boolean> cir, BlockState blockState, FluidState fluidState) {
|
||||
if (!(fluidState instanceof CustomBreakBlock.HackyFluidState)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue