aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/SetSpawnCommand.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/SetSpawnCommand.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/SetSpawnCommand.java.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/SetSpawnCommand.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/SetSpawnCommand.java.patch
new file mode 100644
index 0000000000..356262cf04
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/SetSpawnCommand.java.patch
@@ -0,0 +1,15 @@
+--- a/net/minecraft/server/commands/SetSpawnCommand.java
++++ b/net/minecraft/server/commands/SetSpawnCommand.java
+@@ -67,8 +38,10 @@
+ private static int setSpawn(CommandSourceStack source, Collection<ServerPlayer> targets, BlockPos pos, float angle) {
+ ResourceKey<Level> resourceKey = source.getLevel().dimension();
+
+- for (ServerPlayer serverPlayer : targets) {
+- serverPlayer.setRespawnPosition(resourceKey, pos, angle, true, false);
++ while (iterator.hasNext()) {
++ ServerPlayer entityplayer = (ServerPlayer) iterator.next();
++
++ entityplayer.setRespawnPosition(resourcekey, pos, angle, true, false, org.bukkit.event.player.PlayerSpawnChangeEvent.Cause.COMMAND); // CraftBukkit
+ }
+
+ String string = resourceKey.location().toString();