-
Notifications
You must be signed in to change notification settings - Fork 1
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
Servercore incompatability #31
Comments
The specific error from the log
This is crash caused by duplicate Mixin Framework /**
* Liquid blocks already run their fluid random ticks in {@link ServerLevel#tickChunk(LevelChunk, int)}
* This patch gets rid of the second 'duplicate' random tick.
*/
@Redirect(
method = "isRandomlyTicking",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/world/level/material/FluidState;isRandomlyTicking()Z"
)
)
private boolean servercore$cancelDuplicateFluidTicks(FluidState fluidState) {
return false;
} water-erosion: Minecraft-Water-Erosion/fabric/src/main/java/com/_13rac1/erosion/fabric/mixin/LiquidBlockMixin.java Lines 26 to 30 in 6de8671
🤔 The Servercore code comment states: if (i > 0) {
LevelChunkSection[] levelChunkSections = levelChunk.getSections();
for(int n = 0; n < levelChunkSections.length; ++n) {
LevelChunkSection levelChunkSection = levelChunkSections[n];
if (levelChunkSection.isRandomlyTicking()) {
l = levelChunk.getSectionYFromSectionIndex(n);
int o = SectionPos.sectionToBlockCoord(l);
for(m = 0; m < i; ++m) {
BlockPos blockPos3 = this.getBlockRandomPos(j, o, k, 15);
profilerFiller.push("randomTick");
BlockState blockState4 = levelChunkSection.getBlockState(blockPos3.getX() - j, blockPos3.getY() - o, blockPos3.getZ() - k);
if (blockState4.isRandomlyTicking()) {
blockState4.randomTick(this, blockPos3, this.random);
}
FluidState fluidState = blockState4.getFluidState();
if (fluidState.isRandomlyTicking()) {
fluidState.randomTick(this, blockPos3, this.random);
} When |
This mod is incompatible with the servercore performance optimization mod.
Here is the crash report:
https://mclo.gs/CdfGrJW
The text was updated successfully, but these errors were encountered: