@ -38,15 +38,17 @@ module DFHack
@callback.call
else
if year > @minyear or (year == @minyear and yeartick >= @minyeartick)
@minyear = year
@minyeartick = yeartick + @ticklimit
if @minyeartick > yearlen
@minyear += 1
@minyeartick -= yearlen
end
rescue
puts_err "onupdate cb #$!", $!.backtrace
def <=>(o)