mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 03:25:02 +00:00
Fixes to recent custom item changes, width wasn't rendering properly
This commit is contained in:
1 parent
39a40c9603
commit
84286794aa
6 files changed
+130
-71
No files matched your search
@@ -8,7 +8,7 @@ import noppes.npcs.CustomNpcs;
|
||||
import noppes.npcs.Server;
|
||||
import noppes.npcs.client.gui.OverlayQuestTracking;
|
||||
import noppes.npcs.client.gui.customoverlay.OverlayCustom;
|
||||
import noppes.npcs.client.renderer.customitem.ItemImageData;
|
||||
import noppes.npcs.client.renderer.customitem.ImageData;
|
||||
import noppes.npcs.constants.EnumPacketServer;
|
||||
import noppes.npcs.controllers.data.SkinOverlay;
|
||||
|
||||
@@ -21,7 +21,7 @@ public class Client {
|
||||
public static HashMap<Integer, OverlayCustom> customOverlays = new HashMap<>();
|
||||
public static HashMap<UUID, HashMap<Integer, SkinOverlay>> skinOverlays = new HashMap<>();
|
||||
public static HashMap<UUID, AnimationData> playerAnimations = new HashMap<>();
|
||||
private static HashMap<String, ItemImageData> imageDataCache = new HashMap<>();
|
||||
private static HashMap<String, ImageData> imageDataCache = new HashMap<>();
|
||||
|
||||
public static void sendData(EnumPacketServer enu, Object... obs) {
|
||||
ByteBuf buffer = Unpooled.buffer();
|
||||
@@ -34,9 +34,9 @@ public class Client {
|
||||
}
|
||||
}
|
||||
|
||||
public static ItemImageData getImageData(String directory) {
|
||||
public static ImageData getImageData(String directory) {
|
||||
if (!imageDataCache.containsKey(directory)) {
|
||||
ItemImageData downloadData = new ItemImageData(directory);
|
||||
ImageData downloadData = new ImageData(directory);
|
||||
imageDataCache.put(directory, downloadData);
|
||||
}
|
||||
return imageDataCache.get(directory);
|
||||
|
||||
Reference in new issue
Block a user