Made death message handling check for 'null' to disable death messages, along with an empty string.

This commit is contained in:
EvilSeph 2011-09-21 18:02:59 -04:00
parent 217b414118
commit 8d5a8667de

View File

@ -156,7 +156,10 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
}
PlayerDeathEvent event = CraftEventFactory.callPlayerDeathEvent(this, loot, damagesource.a(this));
if (!"".equals(event.getDeathMessage())) {
String deathMessage = event.getDeathMessage();
if (deathMessage != null && deathMessage.length() > 0) {
this.b.serverConfigurationManager.sendAll(new Packet3Chat(event.getDeathMessage()));
}