Merge remote-tracking branch 'origin/main'

This commit is contained in:
Gurge44 committed 2026-08-25 09:30:09 +02:00
commit 8f67f0e2ee
4 files changed
+6 -3

No files matched your search

+3
View File
@@ -1006,6 +1006,9 @@ public class Main : BasePlugin
try { SubmergedCompatibility.Initialize(); }
catch (Exception e) { Utils.ThrowException(e); }
try { LevelImposterCompatibility.Init(); }
catch (Exception e) { Utils.ThrowException(e); }
try { HandleRoleColorFiles(); }
catch (Exception e) { Utils.ThrowException(e); }
+1 -1
View File
@@ -194,7 +194,7 @@ public class RemoveDisableDevicesPatch
{
public static void Postfix()
{
if (Main.LIMap) DisableDevice.AddCustomDevicesPos();
if (Main.LIMap) LateTask.New(() => DisableDevice.AddCustomDevicesPos(), 10f, "DisableDevice");
bool rogueForce = Rogue.On && Main.PlayerStates.Values.Any(x => x.Role is Rogue { DisableDevices: true });
if (!Options.DisableDevices.GetBool() && !rogueForce) return;
File renamed without changes.
@@ -303,7 +303,7 @@ internal class AntiAdminer : RoleBase
{
foreach (var (key, position) in DisableDevice.DevicePos)
{
if (!key.StartsWith("LIVital") && !key.StartsWith("LIAdmin") && !key.StartsWith("LICamera")) continue;
if (!key.StartsWith("LI")) continue;
if (FastVector2.DistanceWithinRange(playerPos, position, usableDistance))
{
@@ -317,7 +317,7 @@ internal class AntiAdminer : RoleBase
admin = true;
AddDeviceUse(playerId, Device.Admin);
}
else if (key.StartsWith("LICamera"))
else if (key.StartsWith("LICamera") || key.StartsWith("LIBinocular"))
{
camera = true;
AddDeviceUse(playerId, Device.Camera);