chore(lib): update examples
This commit is contained in:
parent
f121addc40
commit
2bc1e85f94
@ -1,5 +1,6 @@
|
|||||||
Server = "localhost"
|
Server = "localhost"
|
||||||
Username = "ErrorNoWatcher"
|
Username = "ErrorNoWatcher"
|
||||||
|
HttpAddress = "127.0.0.1:8080"
|
||||||
Owners = { "ErrorNoInternet" }
|
Owners = { "ErrorNoInternet" }
|
||||||
|
|
||||||
for _, module in ipairs({
|
for _, module in ipairs({
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Center = { x = 0, y = 64, z = 0 }
|
Center = { x = 0, y = 64, z = 0 }
|
||||||
Radius = 100
|
Radius = 100
|
||||||
Whitelist = Owners
|
Whitelist = table.shallow_copy(Owners)
|
||||||
Ticks = -1
|
Ticks = -1
|
||||||
|
|
||||||
function check_radius()
|
function check_radius()
|
||||||
|
@ -145,7 +145,7 @@ function interact_bed()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
client:go_to(bed, { type = REACH_BLOCK_POS_GOAL, options = { without_mining = true } })
|
client:go_to({ position = bed, radius = 2 }, { type = RADIUS_GOAL, options = { without_mining = true } })
|
||||||
while client.pathfinder.is_calculating or client.pathfinder.is_executing do
|
while client.pathfinder.is_calculating or client.pathfinder.is_executing do
|
||||||
sleep(500)
|
sleep(500)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user