diff --git a/gradle.properties b/gradle.properties index a3571561..257a7763 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use # or better: https://modmuss50.me/fabric.html - minecraft_version=1.19.1-pre2 + minecraft_version=1.19.1-pre4 loader_version=0.14.8 fabric_version=0.56.0+1.19 diff --git a/src/main/java/carpet/script/utils/SnoopyCommandSource.java b/src/main/java/carpet/script/utils/SnoopyCommandSource.java index 92e52519..2d3ace36 100644 --- a/src/main/java/carpet/script/utils/SnoopyCommandSource.java +++ b/src/main/java/carpet/script/utils/SnoopyCommandSource.java @@ -43,7 +43,7 @@ public class SnoopyCommandSource extends CommandSourceStack { super(CommandSource.NULL, original.getPosition(), original.getRotation(), original.getLevel(), CarpetSettings.runPermissionLevel, original.getTextName(), original.getDisplayName(), original.getServer(), original.getEntity(), false, - (ctx, succ, res) -> { }, EntityAnchorArgument.Anchor.FEET, CommandSigningContext.NONE); + (ctx, succ, res) -> { }, EntityAnchorArgument.Anchor.FEET, CommandSigningContext.anonymous()); this.output = CommandSource.NULL; this.position = original.getPosition(); this.world = original.getLevel(); @@ -78,7 +78,7 @@ public class SnoopyCommandSource extends CommandSourceStack this.rotation = player.getRotationVector(); // not a client call really this.error = error; this.chatOutput = output; - this.signingContext = CommandSigningContext.NONE; + this.signingContext = CommandSigningContext.anonymous(); } private SnoopyCommandSource(CommandSource output, Vec3 pos, Vec2 rot, ServerLevel world, int level, String simpleName, Component name, MinecraftServer server, @Nullable Entity entity, ResultConsumer consumer, EntityAnchorArgument.Anchor entityAnchor, CommandSigningContext context,