From 317930d80fb3c211b1cd1303a46d490757c4ccb4 Mon Sep 17 00:00:00 2001 From: Vftdan Date: Fri, 13 Oct 2023 15:45:10 +0300 Subject: [PATCH] wallhack: use string.format to limit number precision --- augment/modules/wh.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/augment/modules/wh.lua b/augment/modules/wh.lua index 4cebf92..6ebeb54 100644 --- a/augment/modules/wh.lua +++ b/augment/modules/wh.lua @@ -80,7 +80,7 @@ return function() 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 .. "}") + cache[id].text.setText(("%s\n{%.2f, %.2f, %.2f}"):format(entity.name, entity.x, entity.y, entity.z)) end if entityFront.flipped then cache[id].text.setColor(0x00FFFFFF)