tracking module integrity when module composition changes
This commit is contained in:
1 parent
f8c3de21d3
commit
06c9aea326
7 files changed
+47
-26
No files matched your search
@@ -5,6 +5,7 @@ import carpet.script.bundled.BundledModule;
|
||||
import carpet.CarpetServer;
|
||||
import carpet.script.bundled.FileModule;
|
||||
import carpet.script.bundled.Module;
|
||||
import carpet.script.exception.IntegrityException;
|
||||
import carpet.script.exception.InvalidCallbackException;
|
||||
import carpet.script.value.FunctionValue;
|
||||
import carpet.script.value.Value;
|
||||
@@ -403,7 +404,7 @@ public class CarpetScriptServer
|
||||
{
|
||||
host.callUDF(BlockPos.ORIGIN, source.withLevel(CarpetSettings.runPermissionLevel), udf, argv);
|
||||
}
|
||||
catch (NullPointerException | InvalidCallbackException npe)
|
||||
catch (NullPointerException | InvalidCallbackException | IntegrityException npe)
|
||||
{
|
||||
if (reportFails) return -1;
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user