Guest User

Safe CanalBuilder Simplified for structures (patch)

a guest
Feb 11th, 2023
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.69 KB | Gaming | 0 0
  1. Index: mods/CanalBuilderMAV_2.0.3/prototypes/waterfill.lua
  2. IDEA additional info:
  3. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  4. <+>UTF-8
  5. ===================================================================
  6. diff --git a/mods/CanalBuilderMAV_2.0.3/prototypes/waterfill.lua b/mods/CanalBuilderMAV_2.0.3/prototypes/waterfill.lua
  7. --- a/mods/CanalBuilderMAV_2.0.3/prototypes/waterfill.lua   (revision 6030350b0a43902d5cf88fe29e449a632495ce7f)
  8. +++ b/mods/CanalBuilderMAV_2.0.3/prototypes/waterfill.lua   (revision b553b92292eab96dd7c94769e6fc90b6ca4a5985)
  9. @@ -90,18 +90,23 @@
  10.      icon = "__CanalBuilderMAV__/graphics/icons/waterfill_small.png",
  11.      icon_size = 32,
  12.      picture = emptyPic(),
  13. -    collision_mask = {},
  14. -    collision_box = {{-0.2, -0.6}, {0.2, 0.3}},
  15. +    collision_mask = { "object-layer", "train-layer" },
  16. +    collision_box = {{-1.2, -0.3}, {1.2, 0.6}},
  17.      center_collision_mask = {"water-tile", "object-layer", "player-layer"},
  18. +    fluid_box_tile_collision_test = { "ground-tile" },
  19. +    adjacent_tile_collision_test = { "water-tile" },
  20. +    adjacent_tile_collision_mask = { "ground-tile" }, -- to prevent building on edge of map :(
  21. +    adjacent_tile_collision_box = { { -1, -2 }, { 1, -1 } },
  22. +    minable = nil,
  23.      flags = {"placeable-neutral", "player-creation", "filter-directions"},
  24.      fluid_box_tile_collision_test = {},
  25.      fluid = "water",
  26.      fluid_box = {
  27. -        filter = "water",
  28. +        filter = nil,
  29.          pipe_connections = {
  30.              {
  31. -                position = {0, 1},
  32. -                type = "output"
  33. +                position = {0, -1},
  34. +                type = "input"
  35.              }
  36.          },
  37.          production_type = "none"
  38.  
Advertisement
Add Comment
Please, Sign In to add comment