mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
item remote patches: SetHeldByPlayer for dream lanterns
This commit is contained in:
parent
705b4d8dfd
commit
0104069f46
@ -36,7 +36,7 @@ internal class ItemRemotePatches : QSBPatch
|
||||
{
|
||||
__instance._lanternController.enabled = true;
|
||||
__instance._lanternController.SetDetectorScaleCompensation(__instance._lanternController.transform.lossyScale);
|
||||
// __instance._lanternController.SetHeldByPlayer(true);
|
||||
__instance._lanternController.SetHeldByPlayer(true);
|
||||
// Locator.GetPlayerController().SetDreamLantern(__instance);
|
||||
}
|
||||
|
||||
@ -127,7 +127,7 @@ internal class ItemRemotePatches : QSBPatch
|
||||
if (__instance._lanternController != null)
|
||||
{
|
||||
__instance._lanternController.SetDetectorScaleCompensation(__instance._lanternController.transform.lossyScale);
|
||||
// __instance._lanternController.SetHeldByPlayer(false);
|
||||
__instance._lanternController.SetHeldByPlayer(false);
|
||||
__instance._lanternController.enabled = __instance._lanternController.IsLit();
|
||||
// Locator.GetPlayerController().SetDreamLantern(null);
|
||||
}
|
||||
@ -195,7 +195,7 @@ internal class ItemRemotePatches : QSBPatch
|
||||
{
|
||||
__instance._lanternController.SetDetectorScaleCompensation(__instance._lanternController.transform.lossyScale);
|
||||
__instance._lanternController.SetSocketed(true);
|
||||
// __instance._lanternController.SetHeldByPlayer(false);
|
||||
__instance._lanternController.SetHeldByPlayer(false);
|
||||
__instance._lanternController.enabled = __instance._lanternController.IsLit();
|
||||
// Locator.GetPlayerController().SetDreamLantern(null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user