mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-05 22:28:58 +01:00
Merge pull request #3111 from AeiouEnigma/mc1.18/dev
Fix Starlight crash when moving empty contraptions with downward-facing Mechanical Pistons
This commit is contained in:
commit
9e10a2486c
1 changed files with 4 additions and 2 deletions
|
@ -23,8 +23,10 @@ public class ContraptionWorld extends WrappedWorld {
|
|||
|
||||
this.contraption = contraption;
|
||||
|
||||
minY = nextMultipleOf16(contraption.bounds.minY);
|
||||
height = nextMultipleOf16(contraption.bounds.maxY) - minY;
|
||||
// Include 1 block above/below contraption height range to avoid certain edge-case Starlight crashes with
|
||||
// downward-facing mechanical pistons.
|
||||
minY = nextMultipleOf16(contraption.bounds.minY - 1);
|
||||
height = nextMultipleOf16(contraption.bounds.maxY + 1) - minY;
|
||||
}
|
||||
|
||||
// https://math.stackexchange.com/questions/291468
|
||||
|
|
Loading…
Reference in a new issue