Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

fix mega DT #396

Merged
merged 3 commits into from
Mar 3, 2024
Merged

fix mega DT #396

merged 3 commits into from
Mar 3, 2024

Conversation

Glease
Copy link

@Glease Glease commented Feb 29, 2024

supersedes #395

related to GTNewHorizons/GT5-Unofficial#865

fix structure check successing when top layer isn't correctly built

@Glease Glease requested a review from a team February 29, 2024 08:00
while (this.mHeight < 12 && this.checkPiece(STRUCTURE_PIECE_LAYER, 7, this.mHeight * 5, 0)
&& !this.mTopLayerFound) {
while (this.mHeight < 12) {
if (!checkPiece(STRUCTURE_PIECE_LAYER, 1, mHeight * 5, 0)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Horizontal offset should be 7 here right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching this

@Glease
Copy link
Author

Glease commented Mar 3, 2024

I've rechecked this PR in its entirety now and there should be no more copypaste errors

@Dream-Master Dream-Master requested a review from Lyfts March 3, 2024 10:15
@Dream-Master Dream-Master merged commit 1268c0c into master Mar 3, 2024
1 check passed
@Dream-Master Dream-Master deleted the fix/mdt branch March 3, 2024 10:15
@Lyfts
Copy link
Member

Lyfts commented Mar 3, 2024

Okay this got turbo merged... It doesn't actually fix it tho. The entire top can still be missing as long as the first block it checks is present.
dist-top

dist

@Lyfts
Copy link
Member

Lyfts commented Mar 3, 2024

Oh lol disregard that I checked out the wrong branch

mitchej123 pushed a commit that referenced this pull request Mar 8, 2024
* fix mega dt structure

* fix copypaste error

* fix copypaste error again

Former-commit-id: 0aa8a95b61676ede1433ce359aecf00c2aec1e45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants