1
0
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:
Gerkiz 2021-10-06 00:02:39 +02:00 committed by GitHub
commit 934b8985ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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