aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/tracks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua
index b1979f2..1c0b36b 100644
--- a/advtrains/tracks.lua
+++ b/advtrains/tracks.lua
@@ -429,7 +429,7 @@ function sl.create_slopeplacer_on_place(def, preset)
minetest.chat_send_player(player:get_player_name(), attrans("Can't place: space occupied!"))
return istack
end
- if advtrains.is_protected(pos, player:get_player_name()) then
+ if not advtrains.check_track_protection(pos, player:get_player_name()) then
minetest.record_protection_violation(pos, player:get_player_name())
return istack
end