From 33bef3fccd1d074eb4830cdacd3cbe071f85abff Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Wed, 18 Dec 2024 21:36:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BD=BD=E5=85=B7menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/atsuishio/superbwarfare/menu/VehicleMenu.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/menu/VehicleMenu.java b/src/main/java/com/atsuishio/superbwarfare/menu/VehicleMenu.java index af487a4d4..edbb46d9f 100644 --- a/src/main/java/com/atsuishio/superbwarfare/menu/VehicleMenu.java +++ b/src/main/java/com/atsuishio/superbwarfare/menu/VehicleMenu.java @@ -1,6 +1,5 @@ package com.atsuishio.superbwarfare.menu; -import com.atsuishio.superbwarfare.entity.SpeedboatEntity; import com.atsuishio.superbwarfare.init.ModMenuTypes; import com.atsuishio.superbwarfare.item.PerkItem; import com.atsuishio.superbwarfare.perk.Perk; @@ -17,17 +16,19 @@ public class VehicleMenu extends AbstractContainerMenu { private final Container container; private final int containerRows; + public static final int DEFAULT_SIZE = 105; + public static final int X_OFFSET = 97; public static final int Y_OFFSET = 20; public VehicleMenu(int pContainerId, Inventory pPlayerInventory) { - this(pContainerId, pPlayerInventory, new SimpleContainer(SpeedboatEntity.CONTAINER_SIZE)); + this(pContainerId, pPlayerInventory, new SimpleContainer(DEFAULT_SIZE)); } public VehicleMenu(int pContainerId, Inventory pPlayerInventory, Container pContainer) { super(ModMenuTypes.VEHICLE_MENU.get(), pContainerId); - checkContainerSize(pContainer, SpeedboatEntity.CONTAINER_SIZE); + checkContainerSize(pContainer, DEFAULT_SIZE); this.container = pContainer; this.containerRows = 6; pContainer.startOpen(pPlayerInventory.player);