mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Check if item in hand is not null
This commit is contained in:
parent
e5929191a3
commit
d94e2dea58
@ -639,6 +639,9 @@ public class PlayerManager {
|
|||||||
|
|
||||||
ItemStack iih = Jobs.getNms().getItemInMainHand(player);
|
ItemStack iih = Jobs.getNms().getItemInMainHand(player);
|
||||||
|
|
||||||
|
if (iih == null || prog == null)
|
||||||
|
return data;
|
||||||
|
|
||||||
BoostMultiplier itemboost = Jobs.getPlayerManager().getItemBoost(prog, iih);
|
BoostMultiplier itemboost = Jobs.getPlayerManager().getItemBoost(prog, iih);
|
||||||
|
|
||||||
data = new BoostMultiplier(data.getMoneyBoost() + itemboost.getMoneyBoost(),
|
data = new BoostMultiplier(data.getMoneyBoost() + itemboost.getMoneyBoost(),
|
||||||
|
Loading…
Reference in New Issue
Block a user