@@ -405,6 +405,16 @@ script.on_event(defines.events.on_gui_click, function(event)
405
405
factory_item = mod_prefix .. ' item-3'
406
406
end
407
407
408
+ if game .active_mods [' space-exploration' ] and factory_item ~= ' er:screenshot-camera' then
409
+ if remote .call (" space-exploration" , " remote_view_is_active" , {player = player }) then
410
+ player .create_local_flying_text {
411
+ text = string.format (" This tier cannot be placed in remote view." ),
412
+ create_at_cursor = true ,
413
+ }
414
+ return
415
+ end
416
+ end
417
+
408
418
local close_gui_after_grabbing_factory = true
409
419
410
420
-- game.print(serpent.block(global.inventory_size_from_item))
@@ -416,16 +426,6 @@ script.on_event(defines.events.on_gui_click, function(event)
416
426
close_gui_after_grabbing_factory = false
417
427
end
418
428
419
- if game .active_mods [' space-exploration' ] and factory_item ~= ' er:screenshot-camera' then
420
- if remote .call (" space-exploration" , " remote_view_is_active" , {player = player }) then
421
- player .create_local_flying_text {
422
- text = string.format (" This tier cannot be placed in remote view." ),
423
- create_at_cursor = true ,
424
- }
425
- return
426
- end
427
- end
428
-
429
429
player .cursor_stack .set_stack ({name = factory_item , count = 1 }) -- give `RemoteView.get_stack_limit(stack)` more options for modders plox
430
430
if close_gui_after_grabbing_factory then player .opened = nil end
431
431
0 commit comments