aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-09-15 11:50:37 +0200
committerorwell96 <mono96.mml@gmail.com>2016-09-15 11:50:37 +0200
commitb1c9b50406a40e247b7192ef43fe203a0a611072 (patch)
treef9b2f956bda209bef492fbee1146be57fab0724e
parenta05b7c8c8562161ae9ae585dc50cac9a4924217c (diff)
downloadadvtrains-b1c9b50406a40e247b7192ef43fe203a0a611072.tar.gz
advtrains-b1c9b50406a40e247b7192ef43fe203a0a611072.tar.bz2
advtrains-b1c9b50406a40e247b7192ef43fe203a0a611072.zip
add some items to the not-blocking-trains group
-rw-r--r--trainlogic.lua14
-rw-r--r--wagons.lua2
2 files changed, 15 insertions, 1 deletions
diff --git a/trainlogic.lua b/trainlogic.lua
index 81672d9..6e2b3c8 100644
--- a/trainlogic.lua
+++ b/trainlogic.lua
@@ -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
diff --git a/wagons.lua b/wagons.lua
index 78d7b67..ed59ed2 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -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