diff --git a/GCMC/CubePlacerEngine.cs b/GCMC/CubePlacerEngine.cs index 2655f6b..9011b0c 100644 --- a/GCMC/CubePlacerEngine.cs +++ b/GCMC/CubePlacerEngine.cs @@ -47,7 +47,7 @@ namespace GCMC } } - public IEntitiesDB entitiesDB { get; set; } + public EntitiesDB entitiesDB { get; set; } private void ImportWorld(string name) { diff --git a/GCMC/PlaceBlockPatch.cs b/GCMC/PlaceBlockPatch.cs index 285270e..f1e4e36 100644 --- a/GCMC/PlaceBlockPatch.cs +++ b/GCMC/PlaceBlockPatch.cs @@ -29,20 +29,8 @@ namespace GCMC static MethodBase TargetMethod(HarmonyInstance instance) { - return _ComposeMethodInfo(MachineEditingCompositionRoot.StateSyncCompose); - } - - private delegate void ComposeAction(EnginesRoot enginesRoot, - IDataDB dataDB, - RCXMode currentMode, - World physicsWorld, - ref StateSyncRegistrationHelper stateSyncReg, - bool isAuthoritative, - LabelResourceManager textBlockLabelResourceManager, - MainGameOptions.Options mainGameOptions); - private static MethodInfo _ComposeMethodInfo(ComposeAction a) - { - return a.Method; + return typeof(MachineEditingCompositionRoot).GetMethod("StateSyncCompose", + BindingFlags.Public | BindingFlags.Static); } } } \ No newline at end of file