Expose origin-less constructors and methods (#1556)
This commit is contained in:
1 parent
f63c6acb05
commit
b1c29efa2b
4 files changed
+17
-8
No files matched your search
@@ -18,7 +18,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.OptionalInt;
|
||||
import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.ListTag;
|
||||
import net.minecraft.nbt.Tag;
|
||||
@@ -182,7 +181,7 @@ public class ScreenValue extends Value {
|
||||
CarpetScriptHost executingHost = appHost.retrieveForExecution(source,player);
|
||||
try
|
||||
{
|
||||
Value cancelValue = executingHost.callUDF(BlockPos.ZERO, source.withPermission(CarpetSettings.runPermissionLevel), callback, args);
|
||||
Value cancelValue = executingHost.callUDF(source.withPermission(CarpetSettings.runPermissionLevel), callback, args);
|
||||
return cancelValue.getString().equals("cancel");
|
||||
}
|
||||
catch (NullPointerException | InvalidCallbackException | IntegrityException error)
|
||||
|
||||
Reference in new issue
Block a user