Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
- config lock happening outside of worlds
- gay pride not being treated as a default mode
  • Loading branch information
ix0rai committed Jun 29, 2023
1 parent b2cdcc6 commit 70b0393
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/ix0rai/rainglow/config/RainglowConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public boolean isServerSyncEnabled() {
}

public boolean isEditLocked(MinecraftClient client) {
return !client.isInSingleplayer() && this.editLocked;
// client can only be locked inside a multiplayer server
return !client.isInSingleplayer() && (client.getCurrentServerEntry() != null && this.editLocked);
}

public boolean isUninitialised() {
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/assets/rainglow/custom_modes/gay_pride.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "gay_pride",
"textColour": "61D85B",
"colourIds": [
"blue",
"cyan",
"green",
"white"
]
}

0 comments on commit 70b0393

Please sign in to comment.