init.lua 517 B

1234567891011121314151617
  1. -- Don't blackout nodes in singleplayer mode to allow easier debugging.
  2. if not minetest.is_singleplayer() then
  3. local really_register_node = minetest.register_node
  4. local new_register_node = function(name, def)
  5. if not def.drawtype then def.drawtype = "normal" end
  6. if def.drawtype == "normal" then
  7. if not def.post_effect_color then
  8. def.post_effect_color = {a=255, r=0, g=0, b=0}
  9. end
  10. end
  11. really_register_node(name, def)
  12. end
  13. minetest.register_node = new_register_node
  14. end