RE-SS3D / SS3D

Space Station 3D, another remake of SS13, but with an extra D.
https://ss3d.space/
256 stars 137 forks source link

fix the toolbox not getting deleted on tilemap #1345

Closed stilnat closed 11 months ago

stilnat commented 11 months ago

Summary

you can now click on the toolbox and it gets deleted

PR checklist

Networking checklist

Changes

just get the PlacedItemComponent in parent, on the toolbox, the lid was hit instead of the toolbox itself by the raycast, resulting in get component not finding the PlacedItemComponent.

Related issues/PRs

closes #1077

cosmiccoincidence commented 11 months ago

Can you test another item to verify please? Take another item like a backpack or something, add the container script similar to the toolbox, then try to spawn and delete one in-game.

stilnat commented 11 months ago

@cosmiccoincidence tested with the bag with an added container and that works, it's really just about getting the placed tile object component