Time Nick Message 17:28 AspireMint Hello, how do i override function from other mod? Mod has public table with functions - t.func() I tried to put that mod into depends.txt, i can even print it, is says it is function. But if i type t.func = function() print("it works") end and call it, it still call old function... is it somehow protected against overriding? 17:30 MTDiscord <08a​ppguru> AspireMint: The mod probably localizes it. 17:31 MTDiscord <08a​ppguru> So they have: local func do_something() print("something") end t.do_something = do_something() minetest.register_globalstep(do_something) 17:31 MTDiscord <08a​ppguru> There probably is a way to replace it though - in the above example, minetest.registered_globalsteps could be modified 17:32 MTDiscord <08a​ppguru> Would you mind naming mod & function so I can have a look? 17:33 AspireMint im 99% sure :D that it is not local, worldedit.transponse, i can read it in my mod, it says it is function. So it should not be local. 17:34 AspireMint worldedit.transpose * 17:34 MTDiscord <08a​ppguru> Worldedit can still do "local transpose = worldedit.transpose" and localize it. Exposure says nothing about mod internals. 17:36 MTDiscord <08a​ppguru> worldedit.transpose seems to not be localized 17:36 MTDiscord <08a​ppguru> you should be able to override it 17:37 MTDiscord <08a​ppguru> check again that your code is correct 18:03 AspireMint ohhhhhh... wrong fn, did not see it (time for small break).... ok now it works, thanks 18:09 sfan5 what reason would you have to override worldedit_transpose though? 18:10 AspireMint now worldedit rotates stairs, slabs, torches 18:10 AspireMint :) 18:11 AspireMint actually it was rotate fn 18:11 AspireMint my bad... 21:01 Krock MerryFoxmas: u 2 21:08 rubenwardy MerryFoxmas: u 3 21:09 Viper 99% 21:10 MerryFoxmas hullo, yes, happy holidays all 21:10 MerryFoxmas *hands rubenwardy some cookies* 22:08 Calinou /giveme cookies:cookie_chocolate -1 22:10 rubenwardy num 22:10 rubenwardy -u+o