Closed
Description
Describe the bug
In build r20922 and later, pickups created inside of interiors are bugged as a result of this change: d3ef49a (PR #2305)
The pickup won't show (or work) within the interior, even after setting the pickup element to said interior properly.
To reproduce
Reproduction:
- Run the following script on local server:
function pickupTest()
local intPickup= createPickup(374.88861, -8.36938, 1001.85156, 3, 1318)
local outsidePickup = createPickup(916.64050, -1353.23145, 13.20113, 3, 1318)
setElementInterior(intPickup, 9)
end
addEventHandler("onResourceStart", resourceRoot, pickupTest)
- Go to the relevant interior (in reproduction script: Cluckin' Bell, interior 9 and dimension 0) which is easy to do with a local server's "freeroam" > F1 > int menu, and observe pickup not being there.
- Go to the relevant outside interior (coordinates from outsidePickup) to observe pickup there working properly.
- Compare between builds and identify it started with r20926
Version
Client r20926
Additional context
The breaking change will be quickly reverted, to unbreak build and take bugged builds out of roulation as soon we can.