-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Kobe ⑧ <102713261+HaHaWTH@users.noreply.github.com>
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: PadowYT2 <me@padow.ru> | ||
Date: Sun, 21 Jul 2024 15:16:54 +0300 | ||
Subject: [PATCH] Fix MC-266334 | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Co-Authored-By: Kobe ⑧ <102713261+HaHaWTH@users.noreply.github.com> | ||
|
||
diff --git a/src/main/java/net/minecraft/world/entity/decoration/ArmorStand.java b/src/main/java/net/minecraft/world/entity/decoration/ArmorStand.java | ||
index 8e71d4d3874ff154eae423a8fb8f15ae08143f4d..e017341d273c7803cc1a78b93a971c41a299ce27 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/decoration/ArmorStand.java | ||
+++ b/src/main/java/net/minecraft/world/entity/decoration/ArmorStand.java | ||
@@ -516,6 +516,12 @@ public class ArmorStand extends LivingEntity { | ||
boolean flag = source.is(DamageTypeTags.CAN_BREAK_ARMOR_STAND); | ||
boolean flag1 = source.is(DamageTypeTags.ALWAYS_KILLS_ARMOR_STANDS); | ||
|
||
+ // Leaf start | ||
+ if (!flag && source.getDirectEntity() instanceof net.minecraft.world.entity.projectile.ShulkerBullet){ | ||
+ return false; | ||
+ } | ||
+ // Leaf end | ||
+ | ||
if (!flag && !flag1) { | ||
return false; | ||
} else { |