Uses latest Visit API to avoid chat spam. Fixes #299

This commit is contained in:
tastybento 2024-01-02 14:18:34 +09:00
parent 5f83a81f18
commit 41e437afba
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
<!-- Warps addon version -->
<warps.version>1.12.0</warps.version>
<!-- Visit addon version -->
<visit.version>1.4.0</visit.version>
<visit.version>1.6.0</visit.version>
<!-- Panel Utils version -->
<panelutils.version>1.1.0</panelutils.version>
<!-- Revision variable removes warning about dynamic version -->

View File

@ -177,7 +177,7 @@ public class TopLevelPanel {
}
case "VISIT" -> {
return island.getOwner() == null || this.addon.getVisitHook() == null
|| !this.addon.getVisitHook().getAddonManager().preprocessTeleportation(this.user, island);
|| !this.addon.getVisitHook().getAddonManager().preprocessTeleportation(this.user, island, true);
}
case "VIEW" -> {
return island.getOwner() == null