aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-02-05 14:23:00 +0100
committerorwell96 <orwell@bleipb.de>2019-02-05 14:23:00 +0100
commit392adc838dc1b6009247eee36491ddd18f081555 (patch)
treec2fa1f3f7d228c7b5ffd373f8131e944c3824576 /advtrains
parent7891c7c34281f14c089b835c584afca82500967d (diff)
downloadadvtrains-392adc838dc1b6009247eee36491ddd18f081555.tar.gz
advtrains-392adc838dc1b6009247eee36491ddd18f081555.tar.bz2
advtrains-392adc838dc1b6009247eee36491ddd18f081555.zip
Fix slope placer protection
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