add train tracks to protection list

fixes #1
This commit is contained in:
BuckarooBanzay 2020-01-14 15:56:47 +01:00
parent 5d87e454ab
commit 880d938d05
2 changed files with 18 additions and 1 deletions

View File

@ -4,13 +4,27 @@ local cache = {}
-- list of protected nodes
local protected_nodes = {
-- default protector
"protector:protect",
"protector:protect2",
-- travelnet
"travelnet:travelnet",
-- xp protector
"xp_redo:protector",
-- priv protector
"priv_protector:protector",
-- default
"default:chest_protected",
"bones:bones"
"bones:bones",
-- advtrains nodes
"advtrains:dtrack_st",
"advtrains:dtrack_st_45",
"advtrains:dtrack_cr_60"
}
function mapcleaner.is_chunk_or_neighbours_protected(chunk_pos)

View File

@ -29,6 +29,9 @@ xp_redo:protector
priv_protector:protector
default:chest_protected
bones:bones
advtrains:dtrack_st
advtrains:dtrack_st_45
advtrains:dtrack_cr_60
```
# Safety range