mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-13 06:05:46 +01:00
Fixes crash when player in CREATIVE shift+clicks on INVENTORY challenge.
Limit completion time to 2, if player is in creative instead of Integer.MAX_VALUE Fixes #330
This commit is contained in:
parent
74cd97fb80
commit
8a8124f36e
@ -952,6 +952,8 @@ public class TryToComplete
|
||||
else
|
||||
{
|
||||
requiredItems = Collections.emptyList();
|
||||
// Set maxTime to 2, to not crash client when completing 2147483647 times.
|
||||
maxTimes = 2;
|
||||
}
|
||||
|
||||
// Return the result
|
||||
|
Loading…
Reference in New Issue
Block a user