add some items to the not-blocking-trains group
This commit is contained in:
parent
a05b7c8c85
commit
b1c9b50406
|
@ -785,8 +785,22 @@ end
|
|||
local nonblocknodes={
|
||||
"default:fence_wood",
|
||||
"default:torch",
|
||||
|
||||
"default:sign_wall",
|
||||
"signs:sign_wall",
|
||||
"signs:sign_wall_blue",
|
||||
"signs:sign_wall_brown",
|
||||
"signs:sign_wall_orange",
|
||||
"signs:sign_wall_green",
|
||||
"signs:sign_yard",
|
||||
"signs:sign_wall_white_black",
|
||||
"signs:sign_wall_red",
|
||||
"signs:sign_wall_white_red",
|
||||
"signs:sign_wall_yellow",
|
||||
"signs:sign_post",
|
||||
"signs:sign_hanging",
|
||||
|
||||
|
||||
}
|
||||
minetest.after(0, function()
|
||||
for _,name in ipairs(nonblocknodes) do
|
||||
|
|
|
@ -111,7 +111,7 @@ end
|
|||
|
||||
-- Remove the wagon
|
||||
function wagon:on_punch(puncher, time_from_last_punch, tool_capabilities, direction)
|
||||
if not puncher or not puncher:is_player() then
|
||||
if not puncher or not puncher:is_player() or puncher == self.driver then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue