Skip to content

[Bug]: BlockPos uses client-side methods #6

@embeddedt

Description

@embeddedt

Modpack (Optional)

N/A

Game log

N/A

Description

Apparently, MathHelper.roundUpToPowerOfTwo is a client-only method, which causes a crash when the library is used on a server (or with ./gradlew runServer). I discovered this while testing server-side compatibility for ArchaicFix.

private static final int NUM_X_BITS = 1 + MathHelper.calculateLogBaseTwo(MathHelper.roundUpToPowerOfTwo(30000000));

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions