diff --git a/OpenRA.Mods.Common/Scripting/Global/BeaconGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/BeaconGlobal.cs index 1274bfbef4..d875c8839b 100644 --- a/OpenRA.Mods.Common/Scripting/Global/BeaconGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/BeaconGlobal.cs @@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Scripting [Desc("Creates a new beacon that stays for the specified time at the specified WPos. " + "Does not remove player set beacons, nor gets removed by placing them. " + "Requires the 'PlaceBeacon' trait on the player actor.")] - public Beacon New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true) + public void New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true) { var beacon = owner.PlayerActor.Info.TraitInfoOrDefault(); if (beacon == null) @@ -49,8 +49,6 @@ namespace OpenRA.Mods.Common.Scripting owner.Color, duration); } - - return playerBeacon; } } }