mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 07:05:51 +01:00
Check if TNT source is not null first, fixes #438
This commit is contained in:
parent
1678410ab8
commit
02f501d9e3
@ -539,9 +539,11 @@ public class PlayerListener implements Listener {
|
||||
} else if (damager instanceof TNTPrimed) {
|
||||
TNTPrimed tnt = (TNTPrimed) damager;
|
||||
Entity source = tnt.getSource();
|
||||
if (source != null) {
|
||||
if (source.isValid()) {
|
||||
killPlayer(source, evt.getEntity());
|
||||
}
|
||||
}
|
||||
} else if (damager instanceof Wolf) {
|
||||
Wolf wolf = (Wolf) damager;
|
||||
if (wolf.isTamed()) {
|
||||
|
Loading…
Reference in New Issue
Block a user