Skip to content

Commit

Permalink
Update to 4.4.2 (#141)
Browse files Browse the repository at this point in the history
* Version 4.2.2

* Added protection against console error spam if island size is zero.

If the protection range is 0 then the caluclations to teleport players
back into the border will result in infinite values and other
strangeness so this prevents that. This is an edge case and only really
happens when the island size has been set wrongly.

* Update README.md

* Fix perm issue #120 (#121)

* feat: detect mounted players on entity (#88)

* Version 4.3.0

* Changes to work with 1.20.6. Has backwards compatibility. (#125)

* Fix imports

* Update zh-CN.yml (#127)

* Latvian translationa (#128)

* Translate lv.yml via GitLocalize

* Translate lv.yml via GitLocalize

---------

Co-authored-by: mt-gitlocalize <[email protected]>
Co-authored-by: tastybento <[email protected]>

* Add explicit bordertype command (#130)

* Add explicit bordertype command

* Add perm to addon.yml and make it default to off

* Remove unused method.

* 131 null to location (#132)

* Version 4.3.1

* Add defensive code for null to's #131

* If border is off, then don't move player back.

* Update to MC 1.21.3 and codemc updates (#134)

* Version 4.4.1

* Improved operation when border is off (#136)

* Fix merge issue

* Remove duplicate BlockListener class

* Save meta data after setting (#138)

* Save meta data (#139)

* Save meta data after setting

* Remove debug

* Remove unused imports

* Version 4.4.2

* Fix tests and merge issues

---------

Co-authored-by: evlad <[email protected]>
Co-authored-by: Minecraft_15 <[email protected]>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <[email protected]>
  • Loading branch information
5 people authored Jan 1, 2025
1 parent b4448cf commit 0e3c4d9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import world.bentobox.bentobox.managers.IslandWorldManager;
import world.bentobox.bentobox.managers.IslandsManager;
import world.bentobox.bentobox.managers.LocalesManager;
import world.bentobox.bentobox.managers.PlayersManager;
import world.bentobox.bentobox.util.Util;
import world.bentobox.border.Border;
import world.bentobox.border.BorderType;
Expand Down Expand Up @@ -82,6 +83,8 @@ public class IslandBorderCommandTest {
private IslandWorldManager iwm;
@Mock
private BorderShower bs;
@Mock
private PlayersManager pm;

/**
* @throws java.lang.Exception
Expand Down Expand Up @@ -138,6 +141,9 @@ public void setUp() throws Exception {
Settings settings = new Settings();
when(addon.getSettings()).thenReturn(settings);

// Players Manager
when(addon.getPlayers()).thenReturn(pm);

ic = new IslandBorderCommand(addon, ac, "");
}

Expand Down

0 comments on commit 0e3c4d9

Please sign in to comment.