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

Commit

Permalink
Final Lang
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Mar 5, 2023
1 parent 48eced9 commit cd06d8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

Expand Down Expand Up @@ -51,7 +52,7 @@ public boolean checkStructure(World world, BlockPos startPos) {
if (!helper.checkBlock(blockStorage[x][y][z][0], world, pos.add(startPos))) {
if (!helper.checkBlock(blockStorage[x][y][z][1], world, pos.add(startPos))) {
helper.invalidBlock = startPos.add(pos);
helper.expectedBlock = Objects.requireNonNull(blockStorage[x][y][z][0].getBlock().getRegistryName()).toString();
helper.expectedBlock = new ItemStack(blockStorage[x][y][z][0].getBlock(), 1, blockStorage[x][y][z][0].getBlock().getMetaFromState(blockStorage[x][y][z][0])).getDisplayName();
return false;
}
}
Expand Down

0 comments on commit cd06d8a

Please sign in to comment.