diff --git a/gradle.properties b/gradle.properties index 367a3505..2c329d25 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.daemon=false mod_id=sophisticatedbackpacks mod_group_id=sophisticatedbackpacks -mod_version=3.20.13 +mod_version=3.20.14 sonar_project_key=sophisticatedbackpacks:SophisticatedBackpacks github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedBackpacks diff --git a/src/main/java/net/p3pp3rf1y/sophisticatedbackpacks/settings/BackpackMainSettingsTab.java b/src/main/java/net/p3pp3rf1y/sophisticatedbackpacks/settings/BackpackMainSettingsTab.java index cad93925..03175bfd 100644 --- a/src/main/java/net/p3pp3rf1y/sophisticatedbackpacks/settings/BackpackMainSettingsTab.java +++ b/src/main/java/net/p3pp3rf1y/sophisticatedbackpacks/settings/BackpackMainSettingsTab.java @@ -8,11 +8,7 @@ import net.p3pp3rf1y.sophisticatedcore.client.gui.controls.ButtonDefinition; import net.p3pp3rf1y.sophisticatedcore.client.gui.controls.ImageButton; import net.p3pp3rf1y.sophisticatedcore.client.gui.controls.ToggleButton; -import net.p3pp3rf1y.sophisticatedcore.client.gui.utils.Dimension; -import net.p3pp3rf1y.sophisticatedcore.client.gui.utils.GuiHelper; -import net.p3pp3rf1y.sophisticatedcore.client.gui.utils.Position; -import net.p3pp3rf1y.sophisticatedcore.client.gui.utils.TextureBlitData; -import net.p3pp3rf1y.sophisticatedcore.client.gui.utils.UV; +import net.p3pp3rf1y.sophisticatedcore.client.gui.utils.*; import net.p3pp3rf1y.sophisticatedcore.settings.main.MainSettingsTab; import java.util.List; @@ -46,7 +42,7 @@ public BackpackMainSettingsTab(BackpackMainSettingsContainer container, Position super(container, position, screen, BACKPACK_CONTEXT_TOOLTIP, Component.translatable(SBPTranslationHelper.INSTANCE.translSettingsButton("context_backpack")), SBPTranslationHelper.INSTANCE.translSettings("backpack"), SBPTranslationHelper.INSTANCE.translSettingsTooltip("backpack"), onTabIconClicked -> new ImageButton(new Position(position.x() + 1, position.y() + 4), Dimension.SQUARE_16, ICON, onTabIconClicked)); if (Boolean.TRUE.equals(Config.SERVER.allowOpeningOtherPlayerBackpacks.get())) { - addHideableChild(new ToggleButton<>(new Position(x + 39, y + 46), ANOTHER_PLAYER_CAN_OPEN, button -> container.toggleAnotherPlayerCanOpen(), container::canAnotherPlayerOpen)); + addHideableChild(new ToggleButton<>(new Position(x + 57, y + 46), ANOTHER_PLAYER_CAN_OPEN, button -> container.toggleAnotherPlayerCanOpen(), container::canAnotherPlayerOpen)); } } }