From cb508e8f42fe6e8b2de438b0300e0a974ea6aee8 Mon Sep 17 00:00:00 2001 From: ChampionAsh5357 Date: Sat, 8 Feb 2025 23:00:53 -0500 Subject: [PATCH] fix(vanilla): Display correct relative position used in GameTestHelper#relativePos --- .../minecraft/gametest/framework/TestCommand.java.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/net/minecraft/gametest/framework/TestCommand.java.patch b/patches/net/minecraft/gametest/framework/TestCommand.java.patch index 7bc73f3e4e..679dda3100 100644 --- a/patches/net/minecraft/gametest/framework/TestCommand.java.patch +++ b/patches/net/minecraft/gametest/framework/TestCommand.java.patch @@ -1,8 +1,11 @@ --- a/net/minecraft/gametest/framework/TestCommand.java +++ b/net/minecraft/gametest/framework/TestCommand.java -@@ -363,7 +_,7 @@ +@@ -361,9 +_,9 @@ + say(serverlevel, "Structure block entity could not be found", ChatFormatting.RED); + return 0; } else { - BlockPos blockpos1 = blockpos.subtract(optional.get()); +- BlockPos blockpos1 = blockpos.subtract(optional.get()); ++ BlockPos blockpos1 = blockpos.subtract(optional.get()).subtract(structureblockentity.getStructurePos()); // Neo: Match relative position to GameTestHelper#relativePos String s = blockpos1.getX() + ", " + blockpos1.getY() + ", " + blockpos1.getZ(); - String s1 = structureblockentity.getMetaData(); + String s1 = structureblockentity.getMetaData().isBlank() ? structureblockentity.getStructureName() : structureblockentity.getMetaData(); // Neo: use the metadata for the structure name