workaround for hanging events after shutdown.
This commit is contained in:
1 parent
4807e4d518
commit
9ebae27807
1 file changed
+9
-1
@@ -205,7 +205,15 @@ public class CarpetEventServer
|
||||
if (callList.size() > 0)
|
||||
{
|
||||
List<Value> argv = argumentSupplier.get(); // empty for onTickDone
|
||||
ServerCommandSource source = cmdSourceSupplier.get();
|
||||
ServerCommandSource source;
|
||||
try
|
||||
{
|
||||
source = cmdSourceSupplier.get();
|
||||
}
|
||||
catch (NullPointerException noReference) // todo figure out what happens when closing.
|
||||
{
|
||||
return;
|
||||
}
|
||||
String nameCheck = perPlayerDistribution?source.getName():null;
|
||||
assert argv.size() == reqArgs;
|
||||
List<Callback> fails = new ArrayList<>();
|
||||
|
||||
Reference in new issue
Block a user