From b703a325443f7dfe14e9f8130c5e95cd083efaf9 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 30 Apr 2022 21:52:30 -0400 Subject: [PATCH] QoL changes --- src/main/java/emu/grasscutter/game/drop/DropManager.java | 3 +-- src/main/java/emu/grasscutter/game/shop/ShopManager.java | 3 +-- .../grasscutter/server/dispatch/DispatchHttpJsonHandler.java | 4 ---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/drop/DropManager.java b/src/main/java/emu/grasscutter/game/drop/DropManager.java index 0e8807cfe..e304d37b5 100644 --- a/src/main/java/emu/grasscutter/game/drop/DropManager.java +++ b/src/main/java/emu/grasscutter/game/drop/DropManager.java @@ -53,8 +53,7 @@ public class DropManager { Grasscutter.getLogger().error("Unable to load drop data. Drop data size is 0."); } } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); + Grasscutter.getLogger().error("Unable to load drop data.", e); } } private void addDropEntity(DropData dd, Scene dropScene, ItemData itemData, Position pos, int num, Player target) { diff --git a/src/main/java/emu/grasscutter/game/shop/ShopManager.java b/src/main/java/emu/grasscutter/game/shop/ShopManager.java index 96dd932a1..bad68afff 100644 --- a/src/main/java/emu/grasscutter/game/shop/ShopManager.java +++ b/src/main/java/emu/grasscutter/game/shop/ShopManager.java @@ -85,8 +85,7 @@ public class ShopManager { }); } } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); + Grasscutter.getLogger().error("Unable to load shop data.", e); } } diff --git a/src/main/java/emu/grasscutter/server/dispatch/DispatchHttpJsonHandler.java b/src/main/java/emu/grasscutter/server/dispatch/DispatchHttpJsonHandler.java index 80e582b5f..5305c4a85 100644 --- a/src/main/java/emu/grasscutter/server/dispatch/DispatchHttpJsonHandler.java +++ b/src/main/java/emu/grasscutter/server/dispatch/DispatchHttpJsonHandler.java @@ -1,12 +1,8 @@ package emu.grasscutter.server.dispatch; import java.io.IOException; -import java.io.OutputStream; import java.util.Arrays; -import java.util.Collections; -import com.sun.net.httpserver.HttpExchange; -import com.sun.net.httpserver.HttpHandler; import emu.grasscutter.Grasscutter; import express.http.HttpContextHandler; import express.http.Request;