Remove damage from poss ball entirely
This commit is contained in:
parent
057f78df8c
commit
fef70df3cb
3 changed files with 4 additions and 3 deletions
|
@ -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.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=GPLv3
|
mod_license=GPLv3
|
||||||
# The mod version. See https://semver.org/
|
# 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.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class PossBallItem extends Item
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDamageable(ItemStack stack) {
|
public boolean isDamageable(ItemStack stack) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -157,9 +157,10 @@ public class ThrownPossBall extends ThrowableItemProjectile
|
||||||
} else {
|
} else {
|
||||||
// No capture
|
// No capture
|
||||||
// Decrease the durability
|
// Decrease the durability
|
||||||
|
/*
|
||||||
int damage = item.getDamageValue();
|
int damage = item.getDamageValue();
|
||||||
damage++;
|
damage++;
|
||||||
item.setDamageValue(damage);
|
item.setDamageValue(damage);*/
|
||||||
// Ensure no entity tag!
|
// Ensure no entity tag!
|
||||||
tag.remove("entity");
|
tag.remove("entity");
|
||||||
|
|
||||||
|
|
Reference in a new issue