Skip to content

Commit

Permalink
Fix Player Unable to Climb Frames on Certain Pipes (GregTechCEu#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude authored Jan 29, 2024
1 parent 7a54450 commit 36d1507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public boolean isHoldingPipe(EntityPlayer player) {
@Override
public void onEntityCollision(World worldIn, @NotNull BlockPos pos, @NotNull IBlockState state,
@NotNull Entity entityIn) {
super.onEntityCollision(worldIn, pos, state, entityIn);
if (worldIn.isRemote) return;
Insulation insulation = getPipeTileEntity(worldIn, pos).getPipeType();
if (insulation.insulationLevel == -1 && entityIn instanceof EntityLivingBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public boolean isHoldingPipe(EntityPlayer player) {
@Override
public void onEntityCollision(@NotNull World worldIn, @NotNull BlockPos pos, @NotNull IBlockState state,
@NotNull Entity entityIn) {
super.onEntityCollision(worldIn, pos, state, entityIn);
if (worldIn.isRemote) return;
TileEntityFluidPipe pipe = (TileEntityFluidPipe) getPipeTileEntity(worldIn, pos);
if (pipe instanceof TileEntityFluidPipeTickable && pipe.getFrameMaterial() == null &&
Expand Down

0 comments on commit 36d1507

Please sign in to comment.