Jump to content

orwar never happen

Closed 1.5.1 1.5.2

Hi, orwar event never start, but it turned true 

"OreWar": {
      "Enable Event": true,

and if I only set this event to true, I have an error when reloading the plugin

Share this comment


Link to comment

Try and change line 455 from this:

var value = listWithKeys[Random.Range(1, listWithKeys.Count)];

to this: 

var value = listWithKeys[Random.Range(0, listWithKeys.Count)];

It's getting confused when only 1 event is enabled because the index of that event (0) was less than what the random number generator was starting at (1). Changing the line above should fix the issue. Please let me know how it goes and I will submit an official update. 

Thank you for letting me know! 

Share this comment


Link to comment

I just released V1.5.2 which should fix this error, thank you again for letting me know and please let me know if you have any more problems. 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.7k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.