Skip to content

Commit

Permalink
Fix blockstates when attempting to render Astral Manipulator recipes (#…
Browse files Browse the repository at this point in the history
…409)

Co-authored-by: nanowu <[email protected]>
  • Loading branch information
nanuwo and nanuwo authored Dec 14, 2024
1 parent 25d8c3a commit 0bb8366
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 118 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;

/**
Expand All @@ -22,6 +23,10 @@ public class ManipulatorCraftingIngredient {
// The block state that must exist at that position.
private BlockState blockState;

public ManipulatorCraftingIngredient(BlockPos pos, Block block) {
this(pos, block.defaultBlockState());
}

public ManipulatorCraftingIngredient(BlockPos pos, BlockState blockState) {
this.relativeBlockPos = pos;
this.blockState = blockState;
Expand Down
Loading

0 comments on commit 0bb8366

Please sign in to comment.