修复无限合成撬棍的bug

This commit is contained in:
Atsuishio 2025-04-12 15:19:17 +08:00 committed by Light_Quanta
parent 675a864ddc
commit 083e233624
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
2 changed files with 0 additions and 19 deletions

View file

@ -39,7 +39,6 @@ public class Glock17ItemModel extends GeoModel<Glock17Item> {
@Override @Override
public void setCustomAnimations(Glock17Item animatable, long instanceId, AnimationState animationState) { public void setCustomAnimations(Glock17Item animatable, long instanceId, AnimationState animationState) {
GeoBone gun = getAnimationProcessor().getBone("bone"); GeoBone gun = getAnimationProcessor().getBone("bone");
GeoBone shen = getAnimationProcessor().getBone("shen");
GeoBone slide = getAnimationProcessor().getBone("huatao"); GeoBone slide = getAnimationProcessor().getBone("huatao");
GeoBone bullet = getAnimationProcessor().getBone("bullet"); GeoBone bullet = getAnimationProcessor().getBone("bullet");
@ -57,11 +56,8 @@ public class Glock17ItemModel extends GeoModel<Glock17Item> {
double fr = ClientEventHandler.fireRot; double fr = ClientEventHandler.fireRot;
gun.setPosX(1.23f * (float) zp); gun.setPosX(1.23f * (float) zp);
gun.setPosY(1.43f * (float) zp - (float) (0.2f * zpz)); gun.setPosY(1.43f * (float) zp - (float) (0.2f * zpz));
gun.setPosZ(7f * (float) zp + (float) (0.3f * zpz)); gun.setPosZ(7f * (float) zp + (float) (0.3f * zpz));
gun.setScaleZ(1f - (0.55f * (float) zp)); gun.setScaleZ(1f - (0.55f * (float) zp));
GeoBone body = getAnimationProcessor().getBone("gun"); GeoBone body = getAnimationProcessor().getBone("gun");

View file

@ -56,21 +56,6 @@ public class Crowbar extends SwordItem {
super(TIER, new Properties().stacksTo(1).attributes(SwordItem.createAttributes(TIER, 2, -2f))); super(TIER, new Properties().stacksTo(1).attributes(SwordItem.createAttributes(TIER, 2, -2f)));
} }
@Override
public boolean hasCraftingRemainingItem(@NotNull ItemStack stack) {
return true;
}
@Override
public @NotNull ItemStack getCraftingRemainingItem(ItemStack itemstack) {
ItemStack stack = new ItemStack(this);
stack.setDamageValue(itemstack.getDamageValue() + 1);
if (stack.getDamageValue() >= stack.getMaxDamage()) {
return ItemStack.EMPTY;
}
return stack;
}
@Override @Override
public boolean isRepairable(@NotNull ItemStack itemstack) { public boolean isRepairable(@NotNull ItemStack itemstack) {
return true; return true;