aboutsummaryrefslogtreecommitdiffhomepage
path: root/CraftBukkit-Patches/0044-Add-Getter-for-Entity-Invulnerability.patch
diff options
context:
space:
mode:
Diffstat (limited to 'CraftBukkit-Patches/0044-Add-Getter-for-Entity-Invulnerability.patch')
-rw-r--r--CraftBukkit-Patches/0044-Add-Getter-for-Entity-Invulnerability.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0044-Add-Getter-for-Entity-Invulnerability.patch b/CraftBukkit-Patches/0044-Add-Getter-for-Entity-Invulnerability.patch
new file mode 100644
index 0000000000..37edf3b355
--- /dev/null
+++ b/CraftBukkit-Patches/0044-Add-Getter-for-Entity-Invulnerability.patch
@@ -0,0 +1,25 @@
+From 2f0abcc6f56027b1f74794e0fa359531ec185205 Mon Sep 17 00:00:00 2001
+From: DerFlash <[email protected]>
+Date: Sat, 3 Aug 2013 19:53:48 +1000
+Subject: [PATCH] Add Getter for Entity Invulnerability
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+index e026c1f..96d763b 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+@@ -403,6 +403,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
+ // Spigot start
+ private final Spigot spigot = new Spigot()
+ {
++ @Override
++ public boolean isInvulnerable()
++ {
++ return getHandle().isInvulnerable();
++ }
+ };
+
+ public Spigot spigot()
+--
+1.9.1
+