1
0
forked from MTSR/mapserver

empty travelnet

This commit is contained in:
NatureFreshMilk 2019-01-28 14:37:58 +01:00
parent d03d120df6
commit c6adc74f2d

View File

@ -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"]