From a04e548895d95e5e9bdbf6ec4b07c6d9527185a8 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sat, 17 Aug 2019 12:57:09 +0000 Subject: [PATCH] No need for class name substring after removing prefixes. Contributed by ReynalDev. --- .../l2jmobius/gameserver/model/actor/instance/NpcInstance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java index b17b8fe485..30867840d2 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java @@ -846,7 +846,7 @@ public class NpcInstance extends Creature // Send a Server->Client NpcHtmlMessage() containing the GM console about this NpcInstance NpcHtmlMessage html = new NpcHtmlMessage(0); StringBuilder html1 = new StringBuilder("
NPC Information
"); - String className = getClass().getName().substring(46); + String className = getClass().getSimpleName(); html1.append("
"); html1.append("Instance Type: " + className + "Faction: " + getTemplate().factionId + "Location ID: " + (_spawn != null ? _spawn.getLocation() : 0) + "");