Custom structure invisible after restart

My mod uses a custom model and texture. It works perfectly fine until you restart the map. Everything placed down from the mod is invisible after the restart but you can still collide with them and pick them up like normal. I have looked up this issue but only a couple people seem to have run into it and nothing has helped.