aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0128-Do-not-let-armorstands-drown.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0128-Do-not-let-armorstands-drown.patch')
-rw-r--r--patches/server/0128-Do-not-let-armorstands-drown.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/server/0128-Do-not-let-armorstands-drown.patch b/patches/server/0128-Do-not-let-armorstands-drown.patch
new file mode 100644
index 0000000000..3c8b3ef332
--- /dev/null
+++ b/patches/server/0128-Do-not-let-armorstands-drown.patch
@@ -0,0 +1,23 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Zach Brown <[email protected]>
+Date: Sat, 18 Feb 2017 19:29:58 -0600
+Subject: [PATCH] Do not let armorstands drown
+
+
+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 a82503bc791b5b01e509b333e9d5baa7abbb60b8..138422903dcb3056cd011a72e0625a1a225b4280 100644
+--- a/src/main/java/net/minecraft/world/entity/decoration/ArmorStand.java
++++ b/src/main/java/net/minecraft/world/entity/decoration/ArmorStand.java
+@@ -935,5 +935,12 @@ public class ArmorStand extends LivingEntity {
+ super.move(type, movement);
+ }
+ }
++
++ // Paper start
++ @Override
++ public boolean canBreatheUnderwater() { // Skips a bit of damage handling code, probably a micro-optimization
++ return true;
++ }
++ // Paper end
+ // Paper end
+ }