Only Tenno Bones
This commit is contained in:
@@ -30,7 +30,7 @@ public abstract class PlayerEntityMixin{
|
|||||||
@Inject(method = "damage", at = @At(value = "TAIL"), locals = LocalCapture.CAPTURE_FAILSOFT, cancellable = true)
|
@Inject(method = "damage", at = @At(value = "TAIL"), locals = LocalCapture.CAPTURE_FAILSOFT, cancellable = true)
|
||||||
private void damageMixin(DamageSource source, float amount, CallbackInfoReturnable<Boolean> cir) {
|
private void damageMixin(DamageSource source, float amount, CallbackInfoReturnable<Boolean> cir) {
|
||||||
Item chestplate = this.inventory.getArmorStack(2).getItem();
|
Item chestplate = this.inventory.getArmorStack(2).getItem();
|
||||||
if (chestplate == ModItems.BERSERKERS_PAULDRON && !Objects.equals(this.getName().getLiteralString(), "Tennocraft12")){
|
if (chestplate == ModItems.BERSERKERS_PAULDRON && Objects.equals(this.getName().getLiteralString(), "Tennocraft12")){
|
||||||
PlayerEntity player = (PlayerEntity) (Object) this;
|
PlayerEntity player = (PlayerEntity) (Object) this;
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
if (!world.isClient()) {
|
if (!world.isClient()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user