public static bool Prefix(PlayerTrigger __instance, string name, ref int __result) { int id = TileRegistry.GetIDByPropName(name.Replace("(Clone)", "")); if (id >= 0) { __result = id; return(false); } return(true); }