Skip to content

Commit

Permalink
Merge pull request #12 from DrexHD/fix-ban
Browse files Browse the repository at this point in the history
Fix teleporting the correct player to the hub
  • Loading branch information
PinkGoosik authored Aug 28, 2023
2 parents da0aabe + 4727cff commit ecb67c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ org.gradle.parallel = true
# Mod Properties
maven_group = ru.pinkgoosik
archives_base_name = skylands
mod_version = 0.3.10+1.20
mod_version = 0.3.11+1.20

# Dependencies | Check these on https://fabricmc.net/develop
minecraft_version = 1.20.1
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/skylands/command/BanCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void ban(ServerPlayerEntity player, ServerPlayerEntity banned) {
SkylandsWorlds.getIsland(banned.getWorld()).ifPresent(isl -> {
if(isl.owner.uuid.equals(island.owner.uuid)) {
banned.sendMessage(SkylandsTexts.prefixed("message.skylands.hub_visit"));
Skylands.instance.hub.visit(player);
Skylands.instance.hub.visit(banned);
}
});
}
Expand Down

0 comments on commit ecb67c2

Please sign in to comment.