mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-29 04:27:53 +01:00
Fixes Issue #217
This commit is contained in:
parent
af91f25827
commit
3559b66b55
@ -60,10 +60,10 @@ public class PlanDeathEventListener implements Listener {
|
|||||||
Material itemInHand;
|
Material itemInHand;
|
||||||
try {
|
try {
|
||||||
itemInHand = killer.getInventory().getItemInMainHand().getType();
|
itemInHand = killer.getInventory().getItemInMainHand().getType();
|
||||||
} catch (Exception e) {
|
} catch (NoSuchMethodError e) {
|
||||||
try {
|
try {
|
||||||
itemInHand = killer.getInventory().getItemInHand().getType(); // Support for non dual wielding versions.
|
itemInHand = killer.getInventory().getItemInHand().getType(); // Support for non dual wielding versions.
|
||||||
} catch (Exception e2) {
|
} catch (Error e2) {
|
||||||
itemInHand = Material.AIR;
|
itemInHand = Material.AIR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user