From fd11ef59ef64379e5079ec19b745b583058cb501 Mon Sep 17 00:00:00 2001
From: Mister_Nebula <41904486+misternebula@users.noreply.github.com>
Date: Mon, 12 Apr 2021 12:02:08 +0100
Subject: [PATCH] change stuffz
---
QSB/Events/EventNames.cs | 2 +-
QSB/Events/QSBEventManager.cs | 2 +-
QSB/QSB.csproj | 2 +-
QSB/ShipSync/Patches/ShipPatches.cs | 3 ++-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/QSB/Events/EventNames.cs b/QSB/Events/EventNames.cs
index 7a1221b9..63e3060d 100644
--- a/QSB/Events/EventNames.cs
+++ b/QSB/Events/EventNames.cs
@@ -63,6 +63,6 @@
public static string QSBExitPlatform = "QSBExitPlatform";
public static string QSBCampfireState = "QSBCampfireState";
public static string QSBMarshmallowEvent = "QSBMarshmallowEvent";
- public static string QSBHatchState = "QSBOpenHatch";
+ public static string QSBHatchState = "QSBHatchState";
}
}
\ No newline at end of file
diff --git a/QSB/Events/QSBEventManager.cs b/QSB/Events/QSBEventManager.cs
index 0d7b609a..3bc270cd 100644
--- a/QSB/Events/QSBEventManager.cs
+++ b/QSB/Events/QSBEventManager.cs
@@ -79,7 +79,7 @@ namespace QSB.Events
new IdentifySignalEvent(),
// Ship
new FlyShipEvent(),
- new OpenHatchEvent()
+ new HatchEvent()
};
if (UnitTestDetector.IsInUnitTest)
diff --git a/QSB/QSB.csproj b/QSB/QSB.csproj
index 0bff310c..9c360d5c 100644
--- a/QSB/QSB.csproj
+++ b/QSB/QSB.csproj
@@ -225,7 +225,7 @@
-
+
diff --git a/QSB/ShipSync/Patches/ShipPatches.cs b/QSB/ShipSync/Patches/ShipPatches.cs
index 38c81174..857a2dfe 100644
--- a/QSB/ShipSync/Patches/ShipPatches.cs
+++ b/QSB/ShipSync/Patches/ShipPatches.cs
@@ -1,5 +1,6 @@
using QSB.Events;
using QSB.Patches;
+using UnityEngine;
namespace QSB.ShipSync.Patches
{
@@ -25,7 +26,7 @@ namespace QSB.ShipSync.Patches
return true;
}
- public static bool HatchController_OnEntry(GameObjectActivationTrigger hitObj)
+ public static bool HatchController_OnEntry(GameObject hitObj)
{
if (hitObj.CompareTag("PlayerDetector"))
{