mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
revert fence (don't work on 0.4.13-stable)
This commit is contained in:
parent
6b164a75da
commit
9b48d2ce29
@ -214,27 +214,16 @@ function default.register_fence(name, def)
|
|||||||
-- Allow almost everything to be overridden
|
-- Allow almost everything to be overridden
|
||||||
local default_fields = {
|
local default_fields = {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
drawtype = "nodebox",
|
drawtype = "fencelike",
|
||||||
node_box = {
|
|
||||||
type = "connected",
|
|
||||||
fixed = {{-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}},
|
|
||||||
-- connect_top =
|
|
||||||
-- connect_bottom =
|
|
||||||
connect_front = {{-1/16,3/16,-1/2,1/16,5/16,-1/8},
|
|
||||||
{-1/16,-5/16,-1/2,1/16,-3/16,-1/8}},
|
|
||||||
connect_left = {{-1/2,3/16,-1/16,-1/8,5/16,1/16},
|
|
||||||
{-1/2,-5/16,-1/16,-1/8,-3/16,1/16}},
|
|
||||||
connect_back = {{-1/16,3/16,1/8,1/16,5/16,1/2},
|
|
||||||
{-1/16,-5/16,1/8,1/16,-3/16,1/2}},
|
|
||||||
connect_right = {{1/8,3/16,-1/16,1/2,5/16,1/16},
|
|
||||||
{1/8,-5/16,-1/16,1/2,-3/16,1/16}},
|
|
||||||
},
|
|
||||||
connects_to = {"group:fence", "group:wood", "group:tree"},
|
|
||||||
inventory_image = fence_texture,
|
inventory_image = fence_texture,
|
||||||
wield_image = fence_texture,
|
wield_image = fence_texture,
|
||||||
tiles = {def.texture},
|
tiles = {def.texture},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
||||||
|
},
|
||||||
groups = {},
|
groups = {},
|
||||||
}
|
}
|
||||||
for k, v in pairs(default_fields) do
|
for k, v in pairs(default_fields) do
|
||||||
|
Loading…
Reference in New Issue
Block a user