Browse Source

Update

tags/v1.0.0
NorbiPeti 4 years ago
parent
commit
f1a3031ea4
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
2 changed files with 3 additions and 15 deletions
  1. +1
    -1
      GCMC/CubePlacerEngine.cs
  2. +2
    -14
      GCMC/PlaceBlockPatch.cs

+ 1
- 1
GCMC/CubePlacerEngine.cs View File

@@ -47,7 +47,7 @@ namespace GCMC
}
}

public IEntitiesDB entitiesDB { get; set; }
public EntitiesDB entitiesDB { get; set; }

private void ImportWorld(string name)
{


+ 2
- 14
GCMC/PlaceBlockPatch.cs View File

@@ -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);
}
}
}

Loading…
Cancel
Save