From 981fe6fae1315adb2fb73fca2452d9a0100a19d3 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sat, 13 Apr 2019 13:12:41 +0200 Subject: [PATCH] Remove the Lua return type of Beacon.New --- OpenRA.Mods.Common/Scripting/Global/BeaconGlobal.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } } }