Skip to content

Commit

Permalink
fix 1.21+ using old config
Browse files Browse the repository at this point in the history
  • Loading branch information
Bawnorton committed Nov 25, 2024
1 parent cf7ad51 commit 6f250f0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.2.4

- Fix 1.21+ versions accidentally using pre-1.21 config

# 2.2.3

- Update configurable dep for 1.21.1
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx4G
fabric_versions=1.19.2, 1.19.4, 1.20.1, 1.20.6, 1.21, 1.21.3
neoforge_versions=1.20.6, 1.21, 1.21.3

mod_version=2.2.3
mod_version=2.2.4
mod_group=com.bawnorton
mod_id=neruina
mod_name=Neruina
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.bawnorton.neruina.Neruina;
import com.bawnorton.neruina.config.Config;
import com.bawnorton.neruina.handler.MessageHandler;
import com.bawnorton.neruina.handler.TickHandler;
import com.llamalad7.mixinextras.sugar.Local;
import net.minecraft.server.MinecraftServer;
Expand All @@ -24,8 +25,13 @@ private void sendSuspendedInfoOnJoin(CallbackInfo ci, @Local(argsOnly = true) Se
TickHandler tickHandler = Neruina.getInstance().getTickHandler();
int count = tickHandler.getTickingEntries().size();
if (count > 0) {
Text message = Neruina.getInstance().getMessageHandler().generateSuspendedInfo();
switch (Config.getInstance().logLevel) {
MessageHandler messageHandler = Neruina.getInstance().getMessageHandler();
Text message = messageHandler.generateSuspendedInfo();
//? if >1.20.7 {
switch (MessageHandler.logLevel) {
//?} else {
/*switch (Config.getInstance().logLevel) {
*///?}
case OPERATORS -> {
if(player.hasPermissionLevel(server.getOpPermissionLevel())) {
player.sendMessage(message, false);
Expand Down

0 comments on commit 6f250f0

Please sign in to comment.