mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
25 lines
540 B
C#
25 lines
540 B
C#
using OWML.Utils;
|
|
using QuantumUNET;
|
|
|
|
namespace QSB.TimeSync
|
|
{
|
|
public class PreserveTimeScale : QNetworkBehaviour
|
|
{
|
|
public void Start()
|
|
{
|
|
QSBCore.Helper.Menus.PauseMenu.GetTitleButton("Button-EndCurrentLoop").Hide(); // Remove the meditation button
|
|
|
|
// Allow server to sleep at campfires
|
|
if (IsServer)
|
|
{
|
|
return;
|
|
}
|
|
|
|
var campfires = FindObjectsOfType<Campfire>();
|
|
foreach (var campfire in campfires)
|
|
{
|
|
campfire.SetValue("_canSleepHere", false); // Stop players from sleeping at campfires
|
|
}
|
|
}
|
|
}
|
|
} |