Skip to content

Commit

Permalink
Fix PyriteRipper isSolid
Browse files Browse the repository at this point in the history
  • Loading branch information
Electro593 committed Nov 22, 2023
1 parent ec5b12a commit 975c406
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import net.minecraft.util.*;
import net.minecraft.util.math.*;
import net.minecraft.world.*;
import org.jetbrains.annotations.*;

public abstract class InWorldInteractionBlock extends BlockWithEntity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void appendProperties(StateManager.Builder<Block, BlockState> builder)
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
Direction targetDirection = state.get(FACING).getOpposite();
BlockPos targetPos = pos.offset(targetDirection);
return world.getBlockState(targetPos).isSolid();
return world.getBlockState(targetPos).isSideSolid(world, targetPos, targetDirection, SideShapeType.FULL);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.google.common.collect.*;
import com.google.gson.*;
import de.dafuqs.spectrum.SpectrumCommon;
import de.dafuqs.spectrum.helpers.NbtHelper;
import de.dafuqs.spectrum.loot.*;
import net.minecraft.item.*;
Expand Down

0 comments on commit 975c406

Please sign in to comment.