fix screen not being cleared properly
This commit is contained in:
parent
980b4a8d2b
commit
3356695d43
|
@ -10,7 +10,12 @@ while true do
|
||||||
for i, p in ipairs(players) do
|
for i, p in ipairs(players) do
|
||||||
local pos = pl_detector.getPlayerPos(p)
|
local pos = pl_detector.getPlayerPos(p)
|
||||||
mon.setCursorPos(1, i)
|
mon.setCursorPos(1, i)
|
||||||
mon.write(p .. " @ X: " .. pos.x .. " Y: " .. pos.y .. " Z: " .. pos.z)
|
mon.clear()
|
||||||
|
if pos == nil then
|
||||||
|
mon.write(p .. " @ ?")
|
||||||
|
else
|
||||||
|
mon.write(p .. " @ X: " .. pos.x .. " Y: " .. pos.y .. " Z: " .. pos.z)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
sleep(2)
|
sleep(2)
|
||||||
|
|
Loading…
Reference in a new issue