The solution is to add the following to the data.lua of your mod.
Code: Select all
data.raw['tile']['landfill']["autoplace"] = {}
Code: Select all
data.raw['tile']['landfill']["autoplace"] = {}
Or add x/y offset to the on_gui_click event, so we can deduce what the player clicked ourselvesI_IBlackI_I wrote: Thu Jul 11, 2019 12:06 pm or make tags on a minimap element clickable. Use case would be to draw a map with locations on another surface, when a player clicks the tag they can teleport to that server.
Alt-F4psihius wrote: Fri Jul 05, 2019 12:16 pm Well, I can think of one - someone setting up an infinite loop between two servers forcing you to kill your client cause you might not be able to press Esc in time if they do it in "on_player_joined" event.
Code: Select all
/c game.print(serpent.line(game.player.selected.get_control_behavior().disabled))