|
|
@ -275,9 +275,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (waterbucketBypass == false) { |
|
|
|
if (waterbucketBypass == false) { |
|
|
|
String powerString = item.template.item_power_action.keySet().iterator().next(); |
|
|
|
String powerString = item.template.item_power_grant.keySet().iterator().next(); |
|
|
|
PowersBase powerAction = PowersManager.powersBaseByIDString.get(powerString); |
|
|
|
PowersBase powerAction = PowersManager.powersBaseByIDString.get(powerString); |
|
|
|
int powerValue = item.template.item_power_action.get(powerString)[0]; |
|
|
|
int powerValue = item.template.item_power_grant.get(powerString); |
|
|
|
PowersManager.applyPower(player, target, Vector3fImmutable.ZERO, powerAction.getToken(), powerValue, true); |
|
|
|
PowersManager.applyPower(player, target, Vector3fImmutable.ZERO, powerAction.getToken(), powerValue, true); |
|
|
|
} |
|
|
|
} |
|
|
|
itemMan.consume(item); |
|
|
|
itemMan.consume(item); |
|
|
|