mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-15 13:53:09 +02:00
Merge pull request #121 from ComfyFactory/mtn_v3_powerdedup
mtn v3 - fix power dedup
This commit is contained in:
commit
934b8985ae
@ -1160,7 +1160,6 @@ local function gui_click(event)
|
||||
return
|
||||
end
|
||||
if name == 'locomotive_max_health' then
|
||||
|
||||
player.remove_item({name = item.value, count = item.price})
|
||||
local message = ({'locomotive.health_bought_info', shopkeeper, player.name, format_number(item.price, true)})
|
||||
|
||||
@ -1907,6 +1906,11 @@ local function on_player_changed_surface(event)
|
||||
return
|
||||
end
|
||||
|
||||
local itemGhost = player.cursor_ghost
|
||||
if itemGhost then
|
||||
player.cursor_ghost = nil
|
||||
end
|
||||
|
||||
local item = player.cursor_stack
|
||||
if item and item.valid_for_read then
|
||||
local name = item.name
|
||||
|
Loading…
x
Reference in New Issue
Block a user