mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
Null check for death event
This commit is contained in:
1 parent
7a8836adae
commit
d16e7305c0
2 files changed
+3
-2
No files matched your search
@@ -461,7 +461,8 @@ public class TEventHandler
|
||||
if (cause != null && cause instanceof EntityPlayer)
|
||||
{
|
||||
EntityPlayer murderer = (EntityPlayer) cause;
|
||||
if (murderer.getHeldItem().getItem() instanceof Weapon)
|
||||
ItemStack stack = murderer.getHeldItem();
|
||||
if (stack != null && stack.getItem() instanceof Weapon)
|
||||
{
|
||||
murderer.addStat(TAchievements.achievements.get("tconstruct.enemySlayer"), 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user