Skip to content

Commit

Permalink
fix(client): crafting bench distance when using points
Browse files Browse the repository at this point in the history
Resolves #1286.
  • Loading branch information
thelindat committed Apr 29, 2023
1 parent b2b52a4 commit 2989de6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ function client.openInventory(inv, data)
if left then
right = CraftingBenches[data.id]
local coords = shared.target == 'ox_target' and right.zones[data.index].coords or right.points[data.index]
local distance = shared.target == 'ox_target' and right.zones[data.index].distance or 2

right = {
type = 'crafting',
Expand All @@ -189,7 +190,7 @@ function client.openInventory(inv, data)
slots = right.slots,
items = right.items,
coords = coords,
distance = right.zones[data.index].distance
distance = distance
}
end
elseif invOpen ~= nil then
Expand Down

0 comments on commit 2989de6

Please sign in to comment.