Merge pull request #19 from Kimapr/master

Quick fix for coroutine robots env reset
master
ac-minetest 2019-09-28 07:25:31 +02:00 committed by GitHub
commit 94b034dd8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -907,8 +907,9 @@ local function init_robot(obj, resetSandbox)
obj:set_properties({infotext = "robot " .. name});
obj:set_properties({nametag = "[" .. name.."]",nametag_color = "LawnGreen"});
obj:set_armor_groups({fleshy=0})
if resetSandbox then initSandbox ( name ) end
end
minetest.register_entity("basic_robot:robot",{
@ -1908,4 +1909,4 @@ minetest.register_craft({
minetest.register_privilege("robot", "increased number of allowed active robots")
minetest.register_privilege("puzzle", "allow player to use puzzle. namespace in robots")
print('[MOD]'.. " basic_robot " .. basic_robot.version .. " loaded.")
print('[MOD]'.. " basic_robot " .. basic_robot.version .. " loaded.")