Added compatibility to my mod (did the name override thing not fixing the upgrade thing) if you want to add it
add this import at the top of your to your Util.lua
local coreUtil = require("core/lualib/util")
then change the Util.unify_item_stack_format function to this:
function Util.unify_item_stack_format(stack)
local overide_items_to_place = function(name)
local prefix = "waterGhost-"
if (coreUtil.string_starts_with(name,prefix)) then
--get the original entity name from the dummy entity name
local originalEntityName = string.sub(name, string.len(prefix) + 1)
return originalEntityName
else
return name
end
end
if type(stack) == "string" then
return {name=overide_items_to_place(stack), count=game.item_prototypes[stack].stack_size}
elseif not stack.count then
return {name=overide_items_to_place(stack.name), count=1}
else
-- technically redundant, but explicit
return {name=overide_items_to_place(stack.name), count=stack.count}
end
end
This is just the quickest implementation of the name replacement I could do you could obviously move stuff elsewhere. I guess I'll just make a fork if you don't want to add the compatibility.