Sign in to follow this  
renetta96

Hamlet 'seasonChange' event doesn't work

Recommended Posts

renetta96    2

On console I enter this :

GetPlayer():ListenForEvent("seasonChange", function(it, data) print("CHANGED") end, GetWorld())

then

GetSeasonManager():StartHumid()

but nothing is printed. I'm using a mod character.

Is this a bug or expected ?

 

Thanks. 

Share this post


Link to post
Share on other sites
bizziboi    835

I just tried your code in a Hamlet world in the console with the version as currently on Steam and for me it prints "CHANGED"

Share this post


Link to post
Share on other sites
rezecib    3,130

Yikes, sorry about that. It was a bug in my workaround for the lack of "seasonlengthschanged" in single-player, but I made a mistake when proxying the __index metamethod... I think I can now conclude that the Lua idiom of using boolean operators for control flow is generally A Bad Thing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this