private static void DieHK(On.Player.orig_Die orig, Player self) { if (AbstractPhysicalObjectHK.GetField(self.abstractPhysicalObject).networkObject) { return; } orig(self); }
private static void DeathPatch(On.Player.orig_Die orig, Player player) { int playerNumber = player.playerState.playerNumber; if (globalStats[playerNumber].backSlot != null && globalStats[playerNumber].backSlot.backItem != null) { globalStats[playerNumber].backSlot.DropItem(); } orig(player); }