get_string and set_string appear not working

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

get_string and set_string appear not working

by lkjoel » Thu Apr 19, 2012 20:36

Here is my code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_abm({
nodenames = "nether:nether_portal_creator",
interval = 1.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
if nodemeta:get_string("generatingportal") == "" or nodemeta:get_string("generatingportal") == nil then
nodemeta:set_string("generatingportal", "true")
...
end
})

This is an ABM that runs every second, but it still reruns the same code, doesn't matter if generatingportal is not nil. Anyone has an idea on this issue?
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron