|
|
@ -340,7 +340,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { |
|
|
|
pam.setX(loc.getX() + 64); //offset grid from tol
|
|
|
|
pam.setX(loc.getX() + 64); //offset grid from tol
|
|
|
|
pam.setY(loc.getY()); |
|
|
|
pam.setY(loc.getY()); |
|
|
|
pam.setZ(loc.getZ() + 64); //offset grid from tol
|
|
|
|
pam.setZ(loc.getZ() + 64); //offset grid from tol
|
|
|
|
pam.addPlacementInfo(ib.getUseID()); |
|
|
|
pam.addPlacementInfo(item.template.deed_structure_id); |
|
|
|
|
|
|
|
|
|
|
|
dispatch = Dispatch.borrow(player, pam); |
|
|
|
dispatch = Dispatch.borrow(player, pam); |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); |
|
|
@ -529,9 +529,12 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { |
|
|
|
DispatchMessage.sendToAllInRange(player, vum); |
|
|
|
DispatchMessage.sendToAllInRange(player, vum); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (waterbucketBypass == false) |
|
|
|
if (waterbucketBypass == false) { |
|
|
|
PowersManager.applyPower(player, target, Vector3fImmutable.ZERO, ib.getUseID(), ib.getUseAmount(), true); |
|
|
|
String powerString = item.template.item_power_action.keySet().iterator().next(); |
|
|
|
|
|
|
|
int powerToken = PowersManager.ActionTokenByIDString.get(powerString); |
|
|
|
|
|
|
|
int powerValue = item.template.item_power_action.get(powerString)[0]; |
|
|
|
|
|
|
|
PowersManager.applyPower(player, target, Vector3fImmutable.ZERO, powerToken, powerValue, true); |
|
|
|
|
|
|
|
} |
|
|
|
itemMan.consume(item); |
|
|
|
itemMan.consume(item); |
|
|
|
} else //just remove the item at this point
|
|
|
|
} else //just remove the item at this point
|
|
|
|
itemMan.consume(item); |
|
|
|
itemMan.consume(item); |
|
|
|