setBlock() cause field in world Gen [Solved]

Hey all,

As I’m just getting back on the dev bandwagon, I noticed that the setBlock# method now requires a Cause parameter. I plan to use the method exclusively during worldgen; what “Cause” can/should I use?

thnks!

At the minimum supply the PluginContainer as the cause.

mk. For posterity the way I did this was:

Cause cause = Cause.source( PluginMain.GetPluginContainer() ).build();

of course, now the @Inject annotations on the pluginContainer and logger fields don’t seem to work, but that is a story for a different thread.