From 3f4d8bf3d069372e036ba6be10587422522e70ba Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Wed, 22 Feb 2023 21:56:33 +0000 Subject: [PATCH] RW v1.9.06 Updated the target version, and added a new check from `JollyUpdate()`. --- SingleplayerCoopEmotes.cs | 4 ++-- SingleplayerCoopEmotes/modinfo.json | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/SingleplayerCoopEmotes.cs b/SingleplayerCoopEmotes.cs index 36b5d52..55ad441 100644 --- a/SingleplayerCoopEmotes.cs +++ b/SingleplayerCoopEmotes.cs @@ -12,7 +12,7 @@ namespace SingleplayerCoopEmotes { - [BepInPlugin("sabreml.singleplayercoopemotes", "SingleplayerCoopEmotes", "1.1.5")] + [BepInPlugin("sabreml.singleplayercoopemotes", "SingleplayerCoopEmotes", "1.1.6")] public class SingleplayerCoopEmotes : BaseUnityPlugin { public void OnEnable() @@ -59,7 +59,7 @@ private void JollyUpdateHK(On.Player.orig_JollyUpdate orig, Player self, bool eu { // If this is hooked then the checks above must have passed, so we don't need to worry about it trying to emote twice. orig(self, eu); - if (self.isNPC || self.room == null) + if (self.isNPC || self.room == null || self.abstractCreature.world.game.wasAnArtificerDream) { return; } diff --git a/SingleplayerCoopEmotes/modinfo.json b/SingleplayerCoopEmotes/modinfo.json index 7715f3c..a0b2c73 100644 --- a/SingleplayerCoopEmotes/modinfo.json +++ b/SingleplayerCoopEmotes/modinfo.json @@ -1,8 +1,9 @@ { - "id": "sabreml.singleplayercoopemotes", - "name": "Singleplayer Co-op Emotes", - "version": "1.1.5", - "target_game_version": "v1.9.05", - "authors": "SabreML", - "description": "Makes the Jolly Co-op emotes work in singleplayer!" + "id": "sabreml.singleplayercoopemotes", + "name": "Singleplayer Co-op Emotes", + "version": "1.1.6", + "target_game_version": "v1.9.06", + "authors": "SabreML", + "description": "Makes the Jolly Co-op emotes work in singleplayer!", + "tags": ["Game Mechanics"] } \ No newline at end of file