Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 46f1e30

Browse files
committed
Update for SE 1.150. Fixes exception related to speed punishment in protection config.
1 parent 268fb6f commit 46f1e30

File tree

8 files changed

+24
-13
lines changed

8 files changed

+24
-13
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//237
1+
//243
22
//
33
// This code was generated by a tool. Any changes made manually will be lost
44
// the next time this code is regenerated.
55
//
66

77
using System.Reflection;
88

9-
[assembly: AssemblyFileVersion("1.13.7.237")]
10-
[assembly: AssemblyVersion("1.13.7.237")]
9+
[assembly: AssemblyFileVersion("1.13.7.243")]
10+
[assembly: AssemblyVersion("1.13.7.243")]

EssentialsPlugin/ChatHandlers/Admin/HandleAdminStatistics.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
using System.Text;
44
using EssentialsPlugin.Utility;
55
using VRage.Utils;
6+
using VRageRender.Utils;
67

7-
public class HandleAdminStatistics : ChatHandlerBase
8+
public class HandleAdminStatistics : ChatHandlerBase
89
{
910
public override string GetHelp()
1011
{

EssentialsPlugin/Editors/ProtectionEditor.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,12 @@ private void RAD_Ban_CheckedChanged(object sender, EventArgs e)
282282

283283
private void RAD_Speed_CheckedChanged(object sender, EventArgs e)
284284
{
285-
_currentSettings.PunishmentType=ProtectedItem.PunishmentEnum.Speed;
286-
_currentSettings.SpeedLimit = double.Parse( TXT_SpeedVal.Text );
285+
_currentSettings.PunishmentType = ProtectedItem.PunishmentEnum.Speed;
286+
if (string.IsNullOrEmpty(TXT_SpeedVal.Text))
287+
TXT_SpeedVal.Text = "0";
288+
_currentSettings.SpeedLimit = double.Parse(TXT_SpeedVal.Text);
289+
if (string.IsNullOrEmpty(TXT_SpeedTime.Text))
290+
TXT_SpeedTime.Text = "0";
287291
_currentSettings.SpeedTime = double.Parse( TXT_SpeedTime.Text );
288292
}
289293

@@ -318,11 +322,15 @@ private void CHK_Faction_CheckedChanged(object sender, EventArgs e)
318322

319323
private void TXT_SpeedVal_TextChanged(object sender, EventArgs e)
320324
{
325+
if (string.IsNullOrEmpty( TXT_SpeedVal.Text ))
326+
TXT_SpeedVal.Text = "0";
321327
_currentSettings.SpeedLimit = double.Parse( TXT_SpeedVal.Text );
322328
}
323329

324330
private void TXT_SpeedTime_TextChanged(object sender, EventArgs e)
325331
{
332+
if (string.IsNullOrEmpty( TXT_SpeedTime.Text ))
333+
TXT_SpeedTime.Text = "0";
326334
_currentSettings.SpeedTime = double.Parse( TXT_SpeedTime.Text );
327335
}
328336

EssentialsPlugin/Essentials.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class Essentials : IPlugin, IChatEventHandler, IPlayerEventHandler, ICube
6767

6868
#region Properties
6969

70-
public static bool StableBuild = false;
70+
//public static bool StableBuild = false;
7171

7272
public static string PluginPath
7373
{

EssentialsPlugin/EssentialsPlugin.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@
332332
<SpecificVersion>False</SpecificVersion>
333333
<HintPath>..\..\SEServerExtender\GameLibraries\VRage.Math.dll</HintPath>
334334
</Reference>
335+
<Reference Include="VRage.Render, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
336+
<SpecificVersion>False</SpecificVersion>
337+
<HintPath>..\..\SEServerExtender\GameLibraries\VRage.Render.dll</HintPath>
338+
</Reference>
335339
<Reference Include="VRage.Scripting, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
336340
<SpecificVersion>False</SpecificVersion>
337341
<HintPath>..\..\SEServerExtender\GameLibraries\VRage.Scripting.dll</HintPath>

EssentialsPlugin/NetworkHandlers/BuildBlockHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public override bool Handle( ulong remoteUserId, CallSite site, BitStream stream
127127
if ( !PluginSettings.Instance.ProtectedEnabled )
128128
return false;
129129

130-
Essentials.Log.Debug( "entering buildblockhandler" );
130+
//Essentials.Log.Debug( "entering buildblockhandler" );
131131

132132
var grid = obj as MyCubeGrid;
133133
if ( grid == null )
@@ -144,8 +144,8 @@ public override bool Handle( ulong remoteUserId, CallSite site, BitStream stream
144144

145145
if (item.EntityId != grid.EntityId)
146146
{
147-
Essentials.Log.Debug( item.EntityId );
148-
Essentials.Log.Debug( grid.EntityId );
147+
//Essentials.Log.Debug( item.EntityId );
148+
//Essentials.Log.Debug( grid.EntityId );
149149
continue;
150150
}
151151

EssentialsPlugin/Utility/CargoShips.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ private static MySpawnGroupDefinition PickRandomSpawnGroup( )
314314
Debug.Assert( i < m_spawnGroupCumulativeFrequencies.Count, "Could not sample a spawn group" );
315315
if ( i >= m_spawnGroupCumulativeFrequencies.Count )
316316
i = m_spawnGroupCumulativeFrequencies.Count - 1;
317-
318-
ProfilerShort.End( );
317+
319318
return m_spawnGroups[i];
320319
}
321320

EssentialsPlugin/Utility/CubeGrid.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
using SEModAPI.API;
2828
using SEModAPIExtensions.API;
2929
using SpaceEngineers.Game.ModAPI.Ingame;
30-
using VRage.Animations;
3130
using VRage.Game;
3231
using VRage.Game.Entity;
3332
using VRage.Game.ModAPI;

0 commit comments

Comments
 (0)