Skip to content

Preperations for block containment checking conversion#782

Open
Atdit wants to merge 1 commit intoWarzoneMC:masterfrom
Atdit:bp2coords-preparation
Open

Preperations for block containment checking conversion#782
Atdit wants to merge 1 commit intoWarzoneMC:masterfrom
Atdit:bp2coords-preparation

Conversation

@Atdit
Copy link
Copy Markdown
Contributor

@Atdit Atdit commented Jun 8, 2021

These changes do not change any game mechanics at all, but will be necessary for the upcoming block containment checking conversion from block positions to coordinates. It will make the final conversion PR a lot more smaller and readable. For the conversion to take effect after this PR, the only changes left have to be done in the individual Region.contains(Block block) methods.

Tested.

Important note: I made changes to the cylinder/(hemi)sphere classes getBlocks() methods to remove redundant code, however, I'm unsure if there was an actual intention behind that code. The only usage for getBlocks() is found in portals, which I tested and still worked.

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

Successfully merging this pull request may close these issues.

1 participant