Better Slimes

Better Slimes

26.5k Downloads

CRASH - bound must be positive

Xorbah opened this issue ยท 3 comments

commented

Uploaded the file below. Crashes approximately 30 minutes after server uptime, and refuses to boot up again unless the entire world save is deleted. I've traced it down to this mod. Hope something can get done with it.

crash-2019-03-14_17.21.36-server (1).txt

commented

Yes i had this exact same issue except it happened when in the nether or even when i went to the aether via aether reborn mod. Never happens in the overworld.

commented

@TheMarstonConnell someone asked for help in the discord I help run and I believe it is the same crash as this, #1 #4 and #5. (their crash report https://pastebin.com/JxuLd4F2 )

The issue has to do with this line where you are generating a random number. The issue has to do with the fact this code is ONLY ran if e.size() < 1 and the JavaDocs for Random#nextInt(int bound) state that the bound must be at least 1. Given your check ensuring it is less than one whenever this code is reached a crash will happen.

commented

Fixed in version 1.2