From f53440be792ee64553dab7d1e769d6e2b2a5f976 Mon Sep 17 00:00:00 2001 From: Vftdan Date: Fri, 13 Oct 2023 15:36:17 +0300 Subject: [PATCH] wallhack: shorter entity description without sneaking --- augment/modules/wh.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/augment/modules/wh.lua b/augment/modules/wh.lua index eb78066..4cebf92 100644 --- a/augment/modules/wh.lua +++ b/augment/modules/wh.lua @@ -77,7 +77,11 @@ return function() cache[id].cube.setPosition(entityFront.x - 0.25, entityFront.y - 0.25, entityFront.z - 0.25) cache[id].frame.setPosition(entityFront.x, entityFront.y, entityFront.z) cache[id].text.setAlpha(0xFF) - cache[id].text.setText(entity.name .. "\n" .. textutils.serialize(entity)) + if player.isSneaking then + cache[id].text.setText(entity.name .. "\n" .. textutils.serialize(entity)) + else + cache[id].text.setText(entity.name .. "\n{" .. entity.x .. ", " .. entity.y .. ", " .. entity.z .. "}") + end if entityFront.flipped then cache[id].text.setColor(0x00FFFFFF) else