Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undocumented cleanroom requirement - only plascrete blocks in southeast corner #1584

Open
MauveCloud opened this issue Nov 21, 2020 · 0 comments

Comments

@MauveCloud
Copy link
Collaborator

I was having trouble figuring out why I was stuck on "incomplete structure" with a simple minimum-size cleanroom, until I looked closer at this loop:

for (int i = -1; i > -16; i--) {
Block tBlock = aBaseMetaTileEntity.getBlockOffset(x, i, z);
int tMeta = aBaseMetaTileEntity.getMetaIDOffset(x, i, z);
if (tBlock != GregTech_API.sBlockReinforced || tMeta != 2) {
y = i + 1;
break;
}
}

That checks the southeast corner specifically for plascrete blocks to determine the height, so if I put an energy or maintenance hatch there (or less likely a machine hull, since there would be no directly adjacent basic machine for it to transfer energy/items to/from), it messes up the height calculation, and produces "incomplete structure".
Once I moved my energy hatch from the southeast to the northeast corner (and put a plascrete block where it had been), the "incomplete structure" message went away. However, I don't understand why that should have been necessary.

BTW, before anyone suggests copying code from GTNH to fix this, I've looked, and that particular loop is the same there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant