From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: MrHua269 Date: Wed, 8 Jul 2026 23:56:26 +0800 Subject: [PATCH] Add back BlockPos transform to Position support diff --git a/src/main/java/io/papermc/paper/util/MCUtil.java b/src/main/java/io/papermc/paper/util/MCUtil.java index 532076c7358aa355ce5144075fe6bd79de6ef9e6..fa940f0dfc19aa2853b7a0d19743321d3c4ce292 100644 --- a/src/main/java/io/papermc/paper/util/MCUtil.java +++ b/src/main/java/io/papermc/paper/util/MCUtil.java @@ -183,6 +183,12 @@ public final class MCUtil { return CraftLocation.toBukkit(pos, world); } + // Shiroha start - add BlockPos support + public static Location toLocation(Level world, BlockPos pos) { + return CraftLocation.toBukkit(pos, world); + } + // Shiroha end - add BlockPos support + /** * Converts a NMS World/Vector to Bukkit Location *