From 068c3c55607fb73320c6df4311d1ff1242e7ee84 Mon Sep 17 00:00:00 2001 From: Konloch Date: Thu, 15 Jul 2021 12:34:33 -0700 Subject: [PATCH] Fixes Class Resource Reloading Editing may have also been broken with this bug --- .../club/bytecodeviewer/resources/ResourceContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java index 512772b4..c1b36e25 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java @@ -129,7 +129,8 @@ public class ResourceContainer public ResourceContainer updateClassNodeBytes() { resourceClassBytes.clear(); - resourceClasses.forEach((s, cn) -> resourceClassBytes.put(s, ASMUtil.nodeToBytes(cn))); + resourceClasses.forEach((s, cn) -> + resourceClassBytes.put(s+".class", ASMUtil.nodeToBytes(cn))); return this; }