Skip to content

Commit 96acb96

Browse files
committed
[ci skip] why load chunk when chunk is loaded????
1 parent a9b6b4d commit 96acb96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/systems/kscott/randomspawnplus/commands/CommandWild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void wildOther(CommandSender sender, String otherPlayerString) {
136136
RandomSpawnEvent randomSpawnEvent = new RandomSpawnEvent(location, otherPlayer.getPlayer(), SpawnType.WILD_COMMAND);
137137

138138
Bukkit.getServer().getPluginManager().callEvent(randomSpawnEvent);
139-
if (location.isChunkLoaded()) {
139+
if (!location.getChunk().isLoaded()) {
140140
location.getChunk().load();
141141
}
142142
PaperLib.teleportAsync(otherPlayer, location.add(0.5, 0, 0.5));

0 commit comments

Comments
 (0)