Open Shad0wlife opened 4 years ago
Could make a copy of this PR for CC:Tweaked too (if this bugfix already wasnt added there)?
CC:T should have these patches already. That said, I've never actually tested whether it's sufficient to ensure compat with CubicChunks.
You are right, thank you. I did not know about CC:Tweaked though, is there any web presence other than your github? When looking for the current version of CC, I did not find anything about it either.
EDIT: Ok, found it on Curseforge now that I knew where to look. I hope it gets known better!
This effectively still checks if the target position is 0<=y<256, just as separate checks for 0 and world.getHeight() would do. But by using this, mods like CubicChunks which modify the world's height limits can change the result of the world.isOutsideBuildHeight() for easy compatibility.