Fix LatestBlockID
This commit is contained in:
parent
206ec19d1e
commit
5654c041c5
1 changed files with 4 additions and 2 deletions
|
@ -3,10 +3,13 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
using Svelto.ECS;
|
using Svelto.ECS;
|
||||||
using RobocraftX.Common;
|
using RobocraftX.Common;
|
||||||
|
|
||||||
|
using Harmony;
|
||||||
|
|
||||||
namespace GamecraftModdingAPI.Blocks
|
namespace GamecraftModdingAPI.Blocks
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -39,8 +42,7 @@ namespace GamecraftModdingAPI.Blocks
|
||||||
public static uint LatestBlockID {
|
public static uint LatestBlockID {
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
//return CommonExclusiveGroups.CurrentBlockEntityID - 1; //TODO
|
return ((uint) AccessTools.Field(typeof(CommonExclusiveGroups), "_nextBlockEntityID").GetValue(null)) - 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue