diff --git a/GamecraftModdingAPI/Blocks/BlockEngine.cs b/GamecraftModdingAPI/Blocks/BlockEngine.cs index a2fdc51..1d9f8c9 100644 --- a/GamecraftModdingAPI/Blocks/BlockEngine.cs +++ b/GamecraftModdingAPI/Blocks/BlockEngine.cs @@ -104,11 +104,21 @@ namespace GamecraftModdingAPI.Blocks public bool BlockExists(EGID id) { + if (!Synced) + { + Sync(); + Synced = true; + } return entitiesDB.Exists(id); } public bool GetBlockInfoExists(EGID blockID) where T : struct, IEntityComponent { + if (!Synced) + { + Sync(); + Synced = true; + } return entitiesDB.Exists(blockID); }