From 95154a9ab3473b574012643030226bd13bdd6180 Mon Sep 17 00:00:00 2001 From: Light_Quanta Date: Fri, 6 Jun 2025 00:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmolang=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/client/model/item/CustomGunModel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/client/model/item/CustomGunModel.java b/src/main/java/com/atsuishio/superbwarfare/client/model/item/CustomGunModel.java index afadc0352..ec9e09cb2 100644 --- a/src/main/java/com/atsuishio/superbwarfare/client/model/item/CustomGunModel.java +++ b/src/main/java/com/atsuishio/superbwarfare/client/model/item/CustomGunModel.java @@ -20,11 +20,11 @@ import java.util.function.DoubleSupplier; public abstract class CustomGunModel extends GeoModel { public ResourceLocation getLODModelResource(T animatable) { - return this.getModelResource(animatable); + return this.getModelResource(animatable, null); } public ResourceLocation getLODTextureResource(T animatable) { - return this.getTextureResource(animatable); + return this.getTextureResource(animatable, null); } @Override @@ -65,7 +65,7 @@ public abstract class CustomGunModel extends var data = GunData.from(stack); set(MolangVariable.SBW_IS_EMPTY, () -> data.isEmpty.get() ? 1 : 0); - set(MolangVariable.SBW_IS_EMPTY, System::currentTimeMillis); + set(MolangVariable.SBW_SYSTEM_TIME, System::currentTimeMillis); } private static void set(String key, DoubleSupplier value) { @@ -74,7 +74,7 @@ public abstract class CustomGunModel extends private void resetQueryValue() { set(MolangVariable.SBW_IS_EMPTY, () -> 0); - set(MolangVariable.SBW_IS_EMPTY, () -> 0); + set(MolangVariable.SBW_SYSTEM_TIME, () -> 0); } public boolean shouldCancelRender(ItemStack stack, AnimationState animationState) {