aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'wagons.lua')
-rw-r--r--wagons.lua2
1 files changed, 1 insertions, 1 deletions
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