forked from MTSR/mapserver
empty travelnet
This commit is contained in:
parent
d03d120df6
commit
c6adc74f2d
@ -10,11 +10,6 @@ type TravelnetBlock struct{}
|
||||
func (this *TravelnetBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock) *mapobjectdb.MapObject {
|
||||
md := block.Metadata.GetMetadata(x, y, z)
|
||||
|
||||
if md["station_name"] == "" || md["owner"] == "" {
|
||||
//station not set up
|
||||
return nil
|
||||
}
|
||||
|
||||
o := mapobjectdb.NewMapObject(&block.Pos, x, y, z, "travelnet")
|
||||
o.Attributes["owner"] = md["owner"]
|
||||
o.Attributes["station_name"] = md["station_name"]
|
||||
|
Loading…
Reference in New Issue
Block a user