1
0
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:
Zrips 2016-08-05 13:36:30 +03:00
parent e5929191a3
commit d94e2dea58

View File

@ -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(),