mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:54:17 +01:00
Merge branch 'mc1.18/dev' of https://github.com/Creators-of-Create/Create into mc1.18/dev
This commit is contained in:
commit
f8cc7ab73c
@ -21,7 +21,7 @@ public abstract class TranslatingContraption extends Contraption {
|
|||||||
return Collections.emptySet();
|
return Collections.emptySet();
|
||||||
if (cachedColliders == null || cachedColliderDirection != movementDirection) {
|
if (cachedColliders == null || cachedColliderDirection != movementDirection) {
|
||||||
cachedColliderDirection = movementDirection;
|
cachedColliderDirection = movementDirection;
|
||||||
cachedColliders= createColliders(world, movementDirection);
|
cachedColliders = createColliders(world, movementDirection);
|
||||||
}
|
}
|
||||||
return cachedColliders;
|
return cachedColliders;
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ public class StationBlockEntity extends SmartBlockEntity implements ITransformab
|
|||||||
BlockPos up = new BlockPos(track.getUpNormal(level, pos, state));
|
BlockPos up = new BlockPos(track.getUpNormal(level, pos, state));
|
||||||
BlockPos down = new BlockPos(track.getUpNormal(level, pos, state).scale(-1));
|
BlockPos down = new BlockPos(track.getUpNormal(level, pos, state).scale(-1));
|
||||||
int bogeyOffset = pos.distManhattan(edgePoint.getGlobalPosition()) - 1;
|
int bogeyOffset = pos.distManhattan(edgePoint.getGlobalPosition()) - 1;
|
||||||
|
|
||||||
if (!isValidBogeyOffset(bogeyOffset)) {
|
if (!isValidBogeyOffset(bogeyOffset)) {
|
||||||
for (boolean upsideDown : Iterate.falseAndTrue) {
|
for (boolean upsideDown : Iterate.falseAndTrue) {
|
||||||
for (int i = -1; i <= 1; i++) {
|
for (int i = -1; i <= 1; i++) {
|
||||||
@ -364,6 +364,10 @@ public class StationBlockEntity extends SmartBlockEntity implements ITransformab
|
|||||||
if (!tryEnterAssemblyMode())
|
if (!tryEnterAssemblyMode())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
//Check the station wasn't destroyed
|
||||||
|
if (!(level.getBlockState(worldPosition).getBlock() instanceof StationBlock))
|
||||||
|
return true;
|
||||||
|
|
||||||
BlockState newState = getBlockState().setValue(StationBlock.ASSEMBLING, true);
|
BlockState newState = getBlockState().setValue(StationBlock.ASSEMBLING, true);
|
||||||
level.setBlock(getBlockPos(), newState, 3);
|
level.setBlock(getBlockPos(), newState, 3);
|
||||||
refreshBlockState();
|
refreshBlockState();
|
||||||
|
Loading…
Reference in New Issue
Block a user