Remove damage from poss ball entirely

This commit is contained in:
zontreck 2023-12-25 23:36:05 -07:00
parent 057f78df8c
commit fef70df3cb
3 changed files with 4 additions and 3 deletions

View file

@ -49,7 +49,7 @@ mod_name=OTEMod
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=GPLv3
# The mod version. See https://semver.org/
mod_version=1.4.122223.1352
mod_version=1.4.122523.2335
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

View file

@ -28,7 +28,7 @@ public class PossBallItem extends Item
@Override
public boolean isDamageable(ItemStack stack) {
return true;
return false;
}
@Override

View file

@ -157,9 +157,10 @@ public class ThrownPossBall extends ThrowableItemProjectile
} else {
// No capture
// Decrease the durability
/*
int damage = item.getDamageValue();
damage++;
item.setDamageValue(damage);
item.setDamageValue(damage);*/
// Ensure no entity tag!
tag.remove("entity");