From f281706b1e1a600a68ff6f33ad3e9692dc783f7e Mon Sep 17 00:00:00 2001 From: Ian Sutton Date: Wed, 24 Jan 2024 22:36:11 -0600 Subject: [PATCH] don't ping for preserved mobs --- .../wurmesp/feature/hook/MobileModelRenderableInit.java | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.41.0