modded-factorio / SeaBlock

Factorio mod pack Sea Block
https://mods.factorio.com/mod/SeaBlock
MIT License
21 stars 18 forks source link

fix #268 #272

Closed atburghardt closed 2 years ago

atburghardt commented 2 years ago

game.is_multiplayer() is not working in on_init event.

KiwiHawk commented 2 years ago

I have concerns about removing items from players. Sea Block aims to play nicely with other mods. This would probably kill quick start mods. Removing starting bots or additional items added by other mods.

Probably better to give items on_player_created. Not sure if calling the Freeplay remote interface will work from there. Might need to give the items directly.

Documentation for remote interfaces: https://wiki.factorio.com/Tutorial:Script_interfaces

atburghardt commented 2 years ago

The interface did not work from on_player_created so im inserting the items into the player.