Skip to content

Commit

Permalink
Fix stupid boolean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed Feb 5, 2024
1 parent db13d93 commit f18ed61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ dependencies {

loom {
accessWidenerPath.set(file("src/main/resources/serverreplay.accesswidener"))

runs {
getByName("server") {
runDir = "run/${project.property("minecraft_version")}"
}
}
}

tasks.remapJar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ private void onBroadcast(List<ServerPlayer> players, Packet<?> packet, CallbackI
)
)
private boolean shouldSkipBroadcasting(boolean noPlayers) {
return noPlayers && !this.replay$recorders.isEmpty();
if (!this.replay$recorders.isEmpty()) {
return false;
}
return noPlayers;
}

@Override
Expand Down

0 comments on commit f18ed61

Please sign in to comment.