mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 20:53:54 -07:00
Update for 1.1_01 renames.
We know these updates (can) break plugins bypassing Bukkit. They are needed for smooth updates however. There will be another one right before before 1.1-R1.
This commit is contained in:
@@ -2,11 +2,11 @@ package net.minecraft.server;
|
||||
|
||||
public class EntityDamageSourceIndirect extends EntityDamageSource {
|
||||
|
||||
private Entity o;
|
||||
private Entity owner;
|
||||
|
||||
public EntityDamageSourceIndirect(String s, Entity entity, Entity entity1) {
|
||||
super(s, entity);
|
||||
this.o = entity1;
|
||||
this.owner = entity1;
|
||||
}
|
||||
|
||||
public Entity b() {
|
||||
@@ -14,13 +14,13 @@ public class EntityDamageSourceIndirect extends EntityDamageSource {
|
||||
}
|
||||
|
||||
public Entity getEntity() {
|
||||
return this.o;
|
||||
return this.owner;
|
||||
}
|
||||
|
||||
public String a(EntityHuman entityhuman) {
|
||||
public String getLocalizedDeathMessage(EntityHuman entityhuman) {
|
||||
// CraftBukkit start
|
||||
String source = (this.o == null) ? "Herobrine" : this.o.ad();
|
||||
return LocaleI18n.a("death." + this.n, new Object[] { entityhuman.name, source});
|
||||
String source = (this.owner == null) ? "Herobrine" : this.owner.getLocalizedName();
|
||||
return LocaleI18n.get("death." + this.translationIndex, new Object[] { entityhuman.name, source});
|
||||
}
|
||||
|
||||
public Entity getProximateDamageSource() {
|
||||
|
Reference in New Issue
Block a user