Skip to content

Commit

Permalink
Limit creep block spreading to the Nether
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Jun 10, 2024
1 parent 7c2e26b commit f4712f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mod/emt/harkenscythe/blocks/HSBlockCreep.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAcces
return CREEP_AABB;
}

// TODO: Creep blocks should only spread in the Nether, also see whether or not this properly works in that dimension
// TODO: See whether this properly works in the Nether
@Override
public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand)
{
if (!worldIn.isRemote)
if (!worldIn.isRemote && worldIn.provider.getDimension() == -1)
{
if (!worldIn.isAreaLoaded(pos, 3)) return;
if (worldIn.getLightFromNeighbors(pos.up()) < 4 && worldIn.getBlockState(pos.up()).getLightOpacity(worldIn, pos.up()) > 2)
Expand Down

0 comments on commit f4712f7

Please sign in to comment.