From: Ian Sutton Date: Thu, 25 Jan 2024 04:36:11 +0000 (-0600) Subject: don't ping for preserved mobs X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=f281706b1e1a600a68ff6f33ad3e9692dc783f7e;p=esp.git don't ping for preserved mobs --- diff --git a/src/net/encode/wurmesp/feature/hook/MobileModelRenderableInit.java b/src/net/encode/wurmesp/feature/hook/MobileModelRenderableInit.java index b4b3f72..a4d6c1f 100644 --- a/src/net/encode/wurmesp/feature/hook/MobileModelRenderableInit.java +++ b/src/net/encode/wurmesp/feature/hook/MobileModelRenderableInit.java @@ -15,6 +15,11 @@ extends Hook { method.invoke(proxy, args); PickableUnit pUnit = (PickableUnit)proxy; Unit unit = new Unit(CellRenderable.world, pUnit.getId(), pUnit, ((CreatureCellRenderable)proxy).getModelName().toString(), ((CreatureCellRenderable)proxy).getHoverName()); + + if(unit.getHoverName().contains("preserved")) { + return null; + } + if (unit.isPlayer() || unit.isMob()) { WurmEspMod.pickableUnits.add(unit); if (unit.isUnique() && WurmEspMod.uniques && WurmEspMod.playsoundunique) {