add logger on server

This commit is contained in:
1e99 2024-12-15 21:53:29 +01:00
parent eb21ecfddc
commit 506566601d
6 changed files with 6 additions and 15 deletions

View file

@ -2,14 +2,11 @@
"required": true, "required": true,
"package": "eu.e99.pixelchat.fabric.mixin", "package": "eu.e99.pixelchat.fabric.mixin",
"compatibilityLevel": "JAVA_21", "compatibilityLevel": "JAVA_21",
"mixins": [
"ChatScreenMixin"
],
"injectors": { "injectors": {
"defaultRequire": 1 "defaultRequire": 1
}, },
"client": [ "client": [
"BossBarHudMixin", "ChatScreenMixin",
"MessageHandlerMixin" "BossBarHudMixin"
] ]
} }

View file

@ -3,7 +3,6 @@ package eu.e99.pixelchat.fabric;
import eu.e99.pixelchat.fabric.image.ImageUploader; import eu.e99.pixelchat.fabric.image.ImageUploader;
import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.ClientModInitializer;
import net.minecraft.client.MinecraftClient; import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.hud.BossBarHud;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View file

@ -1,8 +0,0 @@
package eu.e99.pixelchat.fabric.mixin;
import net.minecraft.client.network.message.MessageHandler;
import org.spongepowered.asm.mixin.Mixin;
@Mixin(MessageHandler.class)
public class MessageHandlerMixin {
}

View file

@ -11,6 +11,7 @@ repositories {
dependencies { dependencies {
implementation 'io.javalin:javalin:6.3.0' implementation 'io.javalin:javalin:6.3.0'
implementation 'org.slf4j:slf4j-simple:2.0.16'
implementation 'org.apache.commons:commons-imaging:1.0.0-alpha5' implementation 'org.apache.commons:commons-imaging:1.0.0-alpha5'
} }

View file

@ -8,6 +8,8 @@ import org.apache.commons.imaging.ImageFormat;
import org.apache.commons.imaging.ImageFormats; import org.apache.commons.imaging.ImageFormats;
import org.apache.commons.imaging.Imaging; import org.apache.commons.imaging.Imaging;
import org.apache.commons.imaging.internal.ImageParserFactory; import org.apache.commons.imaging.internal.ImageParserFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.io.IOException; import java.io.IOException;

View file

@ -6,7 +6,7 @@ import java.util.Map;
public class MemoryStorage implements Storage { public class MemoryStorage implements Storage {
private final Map<String, byte[]> storage; private final Map<String, byte[]> storage;
private int counter = 0; private int counter;
public MemoryStorage() { public MemoryStorage() {
this.storage = new HashMap<>(); this.storage = new HashMap<>();