mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-23 17:47:49 +01:00
Ensure death by TNT is valid, fixes #283
This commit is contained in:
parent
ca117da950
commit
b367a54903
@ -462,7 +462,7 @@ public class PlayerListener implements Listener {
|
||||
} else if (damager instanceof TNTPrimed) {
|
||||
TNTPrimed tnt = (TNTPrimed) damager;
|
||||
Entity source = tnt.getSource();
|
||||
if (source.isValid()) {
|
||||
if (source != null && source.isValid()) {
|
||||
killMob(source, evt.getEntity());
|
||||
}
|
||||
} else if (damager instanceof Wolf) {
|
||||
|
Loading…
Reference in New Issue
Block a user