|
I added a new tile type (TILE_TYPE_RESOURCE = 10) and it works great, however when I leave my server on for an extended period of time (seems like less then an hour though, not sure, it's hard to pinpoint a time) and don't do anything when I try and use my new tile type it doesn't register and the server sees that the type is set to = 0 when it should be = 10. When I use the /mapeditor command it sees that there is the proper type, and when I stop the server and restart it it sees it. it just seems that the tile variables get "cleared" in memory and I can't seem to find where. any help?
EDIT: I think I found the problem. It seems my sub ClearMapItem was clearing all the variables of every tile on the map, which wiped out everything. I changed it to only check when the tile type is an item.
_________________  
|