mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 04:05:12 +00:00
Config Overhaul
This commit is contained in:
1 parent
b4cb69000e
commit
6e92f08851
51 files changed
+764
-395
No files matched your search
@@ -37,6 +37,7 @@ import noppes.npcs.client.gui.util.IGuiClose;
|
||||
import noppes.npcs.client.gui.util.IGuiData;
|
||||
import noppes.npcs.client.gui.util.IGuiError;
|
||||
import noppes.npcs.client.gui.util.IScrollData;
|
||||
import noppes.npcs.config.ConfigClient;
|
||||
import noppes.npcs.constants.EnumGuiType;
|
||||
import noppes.npcs.constants.EnumPacketClient;
|
||||
import noppes.npcs.controllers.data.RecipeCarpentry;
|
||||
@@ -248,10 +249,10 @@ public class PacketHandlerClient extends PacketHandlerServer{
|
||||
String font = Server.readString(buffer);
|
||||
int size = buffer.readInt();
|
||||
if(!font.isEmpty()){
|
||||
CustomNpcs.FontType = font;
|
||||
CustomNpcs.FontSize = size;
|
||||
ClientProxy.Font = new FontContainer(CustomNpcs.FontType, CustomNpcs.FontSize);
|
||||
CustomNpcs.Config.updateConfig();
|
||||
ConfigClient.FontType = font;
|
||||
ConfigClient.FontSize = size;
|
||||
ClientProxy.Font = new FontContainer(ConfigClient.FontType, ConfigClient.FontSize);
|
||||
// CustomNpcs.Config.updateConfig();
|
||||
player.addChatMessage(new ChatComponentTranslation("Font set to %s", ClientProxy.Font.getName()));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user