From 902580798a546041973fa598241d9f3ebaf570ba Mon Sep 17 00:00:00 2001 From: Atsuishio <842960157@qq.com> Date: Sun, 13 Jul 2025 14:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0TODO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/client/renderer/entity/Type63Renderer.java | 2 ++ .../atsuishio/superbwarfare/entity/vehicle/Type63Entity.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/client/renderer/entity/Type63Renderer.java b/src/main/java/com/atsuishio/superbwarfare/client/renderer/entity/Type63Renderer.java index 0bb8478e5..bdda6eee3 100644 --- a/src/main/java/com/atsuishio/superbwarfare/client/renderer/entity/Type63Renderer.java +++ b/src/main/java/com/atsuishio/superbwarfare/client/renderer/entity/Type63Renderer.java @@ -71,6 +71,8 @@ public class Type63Renderer extends GeoEntityRenderer { bone.setRotZ(-Mth.lerp(partialTick, animatable.turretYRotO, animatable.getTurretYRot()) * 6); } + //TODO 正确实现每一个格子有物品时显示一发炮弹模型 + for (int i = 0; i < 11; i++) { var items = animatable.getItemStacks(); if (name.equals("shell" + i)) { diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java index c1efc70fc..b1fa65863 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java @@ -6,7 +6,6 @@ import com.atsuishio.superbwarfare.entity.OBBEntity; import com.atsuishio.superbwarfare.entity.vehicle.base.ContainerMobileVehicleEntity; import com.atsuishio.superbwarfare.init.ModDamageTypes; import com.atsuishio.superbwarfare.init.ModSounds; -import com.atsuishio.superbwarfare.item.SmallShellItem; import com.atsuishio.superbwarfare.tools.CustomExplosion; import com.atsuishio.superbwarfare.tools.OBB; import com.atsuishio.superbwarfare.tools.ParticleTool; @@ -289,7 +288,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt @Override public boolean canPlaceItem(int slot, @NotNull ItemStack stack) { - return stack.getItem() instanceof SmallShellItem; + return true; } @Override