mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix sometimes bringing duplicate object to other system
This commit is contained in:
parent
f41b57a97e
commit
a7560aa2c5
@ -91,6 +91,9 @@ public static class HeldItemHandler
|
||||
|
||||
private static void OnStarSystemChanging(string _)
|
||||
{
|
||||
// Double check we're still holding it
|
||||
_currentlyHeldItem = Locator.GetToolModeSwapper().GetItemCarryTool().GetHeldItem()?.gameObject;
|
||||
|
||||
if (_currentlyHeldItem != null)
|
||||
{
|
||||
// Track it so that when we return to this system we can delete the original
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user