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 {
|
func (this *TravelnetBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock) *mapobjectdb.MapObject {
|
||||||
md := block.Metadata.GetMetadata(x, y, z)
|
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 := mapobjectdb.NewMapObject(&block.Pos, x, y, z, "travelnet")
|
||||||
o.Attributes["owner"] = md["owner"]
|
o.Attributes["owner"] = md["owner"]
|
||||||
o.Attributes["station_name"] = md["station_name"]
|
o.Attributes["station_name"] = md["station_name"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user