Skip to content

Commit

Permalink
Tweaked palm door textures, fixed pathfindability for certain blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Forstride committed Jan 21, 2024
1 parent 5ad72f7 commit 32ae720
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 19 deletions.
7 changes: 0 additions & 7 deletions common/src/main/java/biomesoplenty/block/AnomalyBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.properties.EnumProperty;
import net.minecraft.world.level.pathfinder.PathComputationType;
import net.minecraft.world.phys.shapes.Shapes;
import net.minecraft.world.phys.shapes.VoxelShape;

Expand Down Expand Up @@ -86,12 +85,6 @@ public VoxelShape getOcclusionShape(BlockState state, BlockGetter getter, BlockP
else return Shapes.empty();
}

@Override
public boolean isPathfindable(BlockState p_154341_, BlockGetter p_154342_, BlockPos p_154343_, PathComputationType p_154344_)
{
return false;
}

@Override
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder)
{
Expand Down
6 changes: 0 additions & 6 deletions common/src/main/java/biomesoplenty/block/EyebulbBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.DoubleBlockHalf;
import net.minecraft.world.level.pathfinder.PathComputationType;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.VoxelShape;

Expand Down Expand Up @@ -50,9 +49,4 @@ public boolean canSurvive(BlockState state, LevelReader worldReader, BlockPos po

return false;
}

@Override
public boolean isPathfindable(BlockState p_154341_, BlockGetter p_154342_, BlockPos p_154343_, PathComputationType p_154344_) {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.properties.DirectionProperty;
import net.minecraft.world.level.pathfinder.PathComputationType;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.VoxelShape;

Expand Down Expand Up @@ -66,12 +65,8 @@ public boolean canSurvive(BlockState p_196260_1_, LevelReader p_196260_2_, Block
return this.mayPlaceOn(p_196260_2_.getBlockState(blockpos), p_196260_2_, blockpos);
}

@Override
public BlockState getStateForPlacement(BlockPlaceContext p_196258_1_) {
return this.defaultBlockState().setValue(FACING, p_196258_1_.getHorizontalDirection());
}

@Override
public boolean isPathfindable(BlockState p_154341_, BlockGetter p_154342_, BlockPos p_154343_, PathComputationType p_154344_) {
return false;
}
}
6 changes: 6 additions & 0 deletions common/src/main/java/biomesoplenty/block/WispjellyBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.pathfinder.PathComputationType;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.Shapes;
import net.minecraft.world.phys.shapes.VoxelShape;
Expand Down Expand Up @@ -43,4 +44,9 @@ public VoxelShape getVisualShape(BlockState $$0, BlockGetter $$1, BlockPos $$2,
public boolean propagatesSkylightDown(BlockState $$0, BlockGetter $$1, BlockPos $$2) {
return true;
}

@Override
public boolean isPathfindable(BlockState p_154341_, BlockGetter p_154342_, BlockPos p_154343_, PathComputationType p_154344_) {
return true;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 32ae720

Please sign in to comment.