mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 08:03:42 +01:00
Fixed issues with new world height
- Pulleys are now able to extend below Y=0 - Super Glue can now be placed above Y=256, all the way up to the new world height limit of 320 - Fixes #2421, fixes #2426, fixes #2427
This commit is contained in:
parent
1e9c94303e
commit
aa4668ef28
2 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ public class SuperGlueEntity extends Entity
|
|||
public boolean onValidSurface() {
|
||||
BlockPos pos = hangingPosition;
|
||||
BlockPos pos2 = hangingPosition.relative(getFacingDirection().getOpposite());
|
||||
if (pos2.getY() >= 256)
|
||||
if (level.isOutsideBuildHeight(pos2))
|
||||
return false;
|
||||
if (!level.isAreaLoaded(pos, 0) || !level.isAreaLoaded(pos2, 0))
|
||||
return true;
|
||||
|
|
|
@ -207,7 +207,7 @@ public class PulleyTileEntity extends LinearActuatorTileEntity {
|
|||
|
||||
@Override
|
||||
protected int getExtensionRange() {
|
||||
return Math.max(0, Math.min(AllConfigs.SERVER.kinetics.maxRopeLength.get(), worldPosition.getY() - 1));
|
||||
return Math.max(0, Math.min(AllConfigs.SERVER.kinetics.maxRopeLength.get(), (worldPosition.getY() - 1) + 64));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue