Skip to content

Commit

Permalink
Hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 31, 2024
1 parent 5107522 commit 1ceffdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Date: ????
Info:
- Require 2.0.28 in order to also track pods with a passenger
- Apparently the player is not a passenger yet during cargo pod creation
- Hmm
---------------------------------------------------------------------------------------------------
Version: 1.1.1
Date: 2024. 11. 19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,3 @@ script.on_event(defines.events.on_runtime_mod_setting_changed, function(event)
end
end
end)

script.on_event(defines.events.on_player_changed_surface, function(event)
local player = game.get_player(event.player_index) --[[@as LuaPlayer]]
if player.controller_type == defines.controllers.character then
if player.surface.find_entity("cargo-pod", player.position) then
game.print("player in cargo pod!")
end
end
end)

0 comments on commit 1ceffdb

Please sign in to comment.