Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawers aren't ground content #91

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ if drawers.mcl_loaded then
description = S("Wooden Trim"),
tiles = {"drawers_trim.png"},
groups = {drawer_connector = 1, handy = 1, axey = 1, flammable = 3, wood = 1, building_block = 1, material_wood = 1},
is_ground_content = false,
_mcl_blast_resistance = 15,
_mcl_hardness = 2,
})
Expand All @@ -359,6 +360,7 @@ else
description = S("Wooden Trim"),
tiles = {"drawers_trim.png"},
groups = {drawer_connector = 1, choppy = 3, oddly_breakable_by_hand = 2},
is_ground_content = false,
})
end

Expand Down
1 change: 1 addition & 0 deletions lua/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ function drawers.register_drawer(name, def)
def.paramtype2 = "facedir"
def.legacy_facedir_simple = true
def.groups = def.groups or {}
def.is_ground_content = def.is_ground_content == true
def.drawer_stack_max_factor = def.drawer_stack_max_factor or 24

-- events
Expand Down
1 change: 1 addition & 0 deletions lua/controller.lua
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ local function register_controller()
def.paramtype = "light"
def.paramtype2 = "facedir"
def.legacy_facedir_simple = true
def.is_ground_content = false

-- add pipe connectors, if pipeworks is enabled
if pipeworks_loaded then
Expand Down