Skip to content

Commit e373d25

Browse files
committed
Publish new minor version
1 parent 16cd8f6 commit e373d25

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

mods/factoryplanner-is-exportable-to-fake-factorissimo/control.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,16 @@ script.on_event(defines.events.on_gui_click, function(event)
405405
factory_item = mod_prefix .. 'item-3'
406406
end
407407

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+
408418
local close_gui_after_grabbing_factory = true
409419

410420
-- game.print(serpent.block(global.inventory_size_from_item))
@@ -416,16 +426,6 @@ script.on_event(defines.events.on_gui_click, function(event)
416426
close_gui_after_grabbing_factory = false
417427
end
418428

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-
429429
player.cursor_stack.set_stack({name = factory_item, count = 1}) -- give `RemoteView.get_stack_limit(stack)` more options for modders plox
430430
if close_gui_after_grabbing_factory then player.opened = nil end
431431

mods/factoryplanner-is-exportable-to-fake-factorissimo/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "factoryplanner-is-exportable-to-fake-factorissimo",
33
"title": "Factory Planner - exportable to fake factorissimo",
44
"description": "Skips the building stage, just feed items into the magic box.",
5-
"version": "1.0.12",
5+
"version": "1.1.0",
66
"author": "Quezler",
77
"factorio_version": "1.1",
88
"dependencies": [

0 commit comments

Comments
 (0)