File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
EssentialsSpawn/src/main/java/com/earth2me/essentials/spawn
Essentials/src/main/java/com/earth2me/essentials/utils Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public final class VersionUtil {
4040 public static final BukkitVersion v1_19_R01 = BukkitVersion .fromString ("1.19-R0.1-SNAPSHOT" );
4141 public static final BukkitVersion v1_19_4_R01 = BukkitVersion .fromString ("1.19.4-R0.1-SNAPSHOT" );
4242 public static final BukkitVersion v1_20_1_R01 = BukkitVersion .fromString ("1.20.1-R0.1-SNAPSHOT" );
43+ public static final BukkitVersion v1_20_4_R01 = BukkitVersion .fromString ("1.20.4-R0.1-SNAPSHOT" );
4344 public static final BukkitVersion v1_20_6_R01 = BukkitVersion .fromString ("1.20.6-R0.1-SNAPSHOT" );
4445 public static final BukkitVersion v1_21_R01 = BukkitVersion .fromString ("1.21-R0.1-SNAPSHOT" );
4546 public static final BukkitVersion v1_21_3_R01 = BukkitVersion .fromString ("1.21.3-R0.1-SNAPSHOT" );
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ void onPlayerRespawn(final PlayerRespawnEvent event) {
4949 (!VersionUtil .getServerBukkitVersion ().isHigherThanOrEqualTo (VersionUtil .v1_16_1_R01 ) ||
5050 (!event .isAnchorSpawn () || ess .getSettings ().isRespawnAtAnchor ()))) {
5151 // cannot nuke this sync load due to the event being sync so it would hand either way
52- if (VersionUtil .getServerBukkitVersion ().isHigherThanOrEqualTo (VersionUtil .v1_16_1_R01 )) {
52+ if (VersionUtil .getServerBukkitVersion ().isHigherThanOrEqualTo (VersionUtil .v1_20_4_R01 )) {
5353 respawnLocation = user .getBase ().getRespawnLocation ();
54- } else { // For versions prior to 1.16 .
54+ } else { // For versions prior to 1.20.4 .
5555 respawnLocation = user .getBase ().getBedSpawnLocation ();
5656 }
5757 }
You can’t perform that action at this time.
0 commit comments