修复无限合成撬棍的bug
This commit is contained in:
parent
675a864ddc
commit
083e233624
2 changed files with 0 additions and 19 deletions
|
@ -39,7 +39,6 @@ public class Glock17ItemModel extends GeoModel<Glock17Item> {
|
|||
@Override
|
||||
public void setCustomAnimations(Glock17Item animatable, long instanceId, AnimationState animationState) {
|
||||
GeoBone gun = getAnimationProcessor().getBone("bone");
|
||||
GeoBone shen = getAnimationProcessor().getBone("shen");
|
||||
GeoBone slide = getAnimationProcessor().getBone("huatao");
|
||||
GeoBone bullet = getAnimationProcessor().getBone("bullet");
|
||||
|
||||
|
@ -57,11 +56,8 @@ public class Glock17ItemModel extends GeoModel<Glock17Item> {
|
|||
double fr = ClientEventHandler.fireRot;
|
||||
|
||||
gun.setPosX(1.23f * (float) zp);
|
||||
|
||||
gun.setPosY(1.43f * (float) zp - (float) (0.2f * zpz));
|
||||
|
||||
gun.setPosZ(7f * (float) zp + (float) (0.3f * zpz));
|
||||
|
||||
gun.setScaleZ(1f - (0.55f * (float) zp));
|
||||
|
||||
GeoBone body = getAnimationProcessor().getBone("gun");
|
||||
|
|
|
@ -56,21 +56,6 @@ public class Crowbar extends SwordItem {
|
|||
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
|
||||
public boolean isRepairable(@NotNull ItemStack itemstack) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue