diff options
author | orwell96 <orwell@bleipb.de> | 2019-02-05 14:23:00 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-02-05 14:23:00 +0100 |
commit | 392adc838dc1b6009247eee36491ddd18f081555 (patch) | |
tree | c2fa1f3f7d228c7b5ffd373f8131e944c3824576 | |
parent | 7891c7c34281f14c089b835c584afca82500967d (diff) | |
download | advtrains-392adc838dc1b6009247eee36491ddd18f081555.tar.gz advtrains-392adc838dc1b6009247eee36491ddd18f081555.tar.bz2 advtrains-392adc838dc1b6009247eee36491ddd18f081555.zip |
Fix slope placer protection
-rw-r--r-- | advtrains/tracks.lua | 2 |
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
|