Skip to content

Commit

Permalink
Fix loading with editor extensions instead of marking it as incompatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Jan 31, 2024
1 parent 456b2ae commit 5281d1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions mods/flushable-fluid-wagons/data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ for _, prototype in pairs(data.raw['fluid-wagon']) do
collision_box = {{ -0.5, -0.5}, {0.5, 0.5}},
collision_mask = {},

icons = {
{
icon = prototype.icon, icon_size = prototype.icon_size, icon_mipmaps = prototype.icon_mipmaps, tint = {1, 0.5, 0.5},
},
},

flags = {
'placeable-player',
'placeable-off-grid',
Expand All @@ -43,5 +37,11 @@ for _, prototype in pairs(data.raw['fluid-wagon']) do
selectable_in_game = false,
}

tank.icons = prototype.icons or {
{
icon = prototype.icon, icon_size = prototype.icon_size, icon_mipmaps = prototype.icon_mipmaps, tint = {1, 0.5, 0.5},
},
}

data:extend{tank}
end
2 changes: 1 addition & 1 deletion mods/flushable-fluid-wagons/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "flushable-fluid-wagons",
"title": "Flushable fluid wagons",
"description": "Don't you wish you could flush fluid wagons?",
"version": "1.0.1",
"version": "1.0.2",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down

0 comments on commit 5281d1b

Please sign in to comment.