add logger on server
This commit is contained in:
parent
eb21ecfddc
commit
506566601d
6 changed files with 6 additions and 15 deletions
|
@ -2,14 +2,11 @@
|
|||
"required": true,
|
||||
"package": "eu.e99.pixelchat.fabric.mixin",
|
||||
"compatibilityLevel": "JAVA_21",
|
||||
"mixins": [
|
||||
"ChatScreenMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
},
|
||||
"client": [
|
||||
"BossBarHudMixin",
|
||||
"MessageHandlerMixin"
|
||||
"ChatScreenMixin",
|
||||
"BossBarHudMixin"
|
||||
]
|
||||
}
|
|
@ -3,7 +3,6 @@ package eu.e99.pixelchat.fabric;
|
|||
import eu.e99.pixelchat.fabric.image.ImageUploader;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.gui.hud.BossBarHud;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
}
|
|
@ -11,6 +11,7 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
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'
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ import org.apache.commons.imaging.ImageFormat;
|
|||
import org.apache.commons.imaging.ImageFormats;
|
||||
import org.apache.commons.imaging.Imaging;
|
||||
import org.apache.commons.imaging.internal.ImageParserFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.util.Map;
|
|||
public class MemoryStorage implements Storage {
|
||||
|
||||
private final Map<String, byte[]> storage;
|
||||
private int counter = 0;
|
||||
private int counter;
|
||||
|
||||
public MemoryStorage() {
|
||||
this.storage = new HashMap<>();
|
||||
|
|
Loading…
Reference in a new issue