diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-01-12 23:10:13 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-12 23:10:13 +0100 |
commit | 7219d4dd858b405f34ea66c67f8ab7d4c07fb4ee (patch) | |
tree | a1ca024b03aadf4b687f442b33bf713aecd511f7 /src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java | |
parent | dd5ef8725c699e0b2946dc0f6d523ca482404043 (diff) | |
download | craftbukkit-7219d4dd858b405f34ea66c67f8ab7d4c07fb4ee.tar craftbukkit-7219d4dd858b405f34ea66c67f8ab7d4c07fb4ee.tar.gz craftbukkit-7219d4dd858b405f34ea66c67f8ab7d4c07fb4ee.tar.lz craftbukkit-7219d4dd858b405f34ea66c67f8ab7d4c07fb4ee.tar.xz craftbukkit-7219d4dd858b405f34ea66c67f8ab7d4c07fb4ee.zip |
Updated to Minecraft 1.1
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java b/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java index 9d5496c1..410d2660 100644 --- a/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java +++ b/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java @@ -2,21 +2,25 @@ package net.minecraft.server; public class EntityDamageSourceIndirect extends EntityDamageSource { - private Entity n; + private Entity o; public EntityDamageSourceIndirect(String s, Entity entity, Entity entity1) { super(s, entity); - this.n = entity1; + this.o = entity1; + } + + public Entity b() { + return this.a; } public Entity getEntity() { - return this.n; + return this.o; } public String a(EntityHuman entityhuman) { // CraftBukkit start - String source = (this.n == null) ? "Herobrine" : this.n.ad(); - return LocaleI18n.a("death." + this.m, new Object[] { entityhuman.name, source}); + String source = (this.o == null) ? "Herobrine" : this.o.ad(); + return LocaleI18n.a("death." + this.n, new Object[] { entityhuman.name, source}); } public Entity getProximateDamageSource() { |